Metadata Property
A collection of metadata items.
Syntax
getMetadata(): B2MetadataList; setMetadata(metadata: B2MetadataList): void;
Default Value
Remarks
This collection holds a list of B2Metadata items.
This collection is populated when GetBucketInfo or GetFileInfo is called; and its items are used anytime one of the following methods is called:
- CopyFile (if the SendMetadataOnCopy configuration setting is enabled)
- CreateBucket
- StartMultipartUpload
- UpdateBucket (if the NewMetadata parameter is true)
- UploadFile
Note that there is a limit of 10 metadata items per bucket and per file; the class does not enforce this limit, but the server will return an error if it is exceeded. For files specifically, any value set using the ClientModifiedTime configuration setting will count towards this limit; refer that setting's documentation for more information.
This property is not available at design time.