Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 1.29 KB

FILE_METADATA_OPERATIONS.md

File metadata and controls

7 lines (5 loc) · 1.29 KB

File Metadata Operations

Method Name Description How to Use Example
GetObjectMetadataAsync Gets the metadata for an object in an S3 bucket. Provide the bucket name, object key, and a cancellation token. Returns a dictionary containing the object's metadata. var metadata = await fileMetadataOperations.GetObjectMetadataAsync("bucket-name", "object-key", cancellationToken);
UpdateObjectMetadataAsync Updates the metadata for an object in an S3 bucket. Provide the bucket name, object key, metadata dictionary, and a cancellation token. await fileMetadataOperations.UpdateObjectMetadataAsync("bucket-name", "object-key", metadata, cancellationToken);