Method UpdateMetaAsync
- Namespace
- NATS.Client.ObjectStore
- Assembly
- NATS.Client.ObjectStore.dll
UpdateMetaAsync(string, ObjectMetadata, CancellationToken)
Update object metadata
public ValueTask<ObjectMetadata> UpdateMetaAsync(string key, ObjectMetadata meta, CancellationToken cancellationToken = default)
Parameters
key
stringObject key
meta
ObjectMetadataObject metadata
cancellationToken
CancellationTokenA CancellationToken used to cancel the API call.
Returns
- ValueTask<ObjectMetadata>
Object metadata
Exceptions
- NatsObjException
There is already an object with the same name