Method GetInfoAsync
- Namespace
- NATS.Client.ObjectStore
- Assembly
- NATS.Client.ObjectStore.dll
GetInfoAsync(string, bool, CancellationToken)
Get object metadata by key.
public ValueTask<ObjectMetadata> GetInfoAsync(string key, bool showDeleted = false, CancellationToken cancellationToken = default)
Parameters
key
stringObject key.
showDeleted
boolAlso retrieve deleted objects.
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask<ObjectMetadata>
Object metadata.
Exceptions
- NatsObjException
Object was not found.