Firebase. Storage. MetadataChange
MetadataChange is a set of new metadata values used during object upload or when modifying the metadata of an object.
Summary
AMetadataChange can be created from an existingStorageMetadata or it can be created from scratch.
Constructors and Destructors | |
|---|---|
MetadataChange()Creates an empty set of metadata. | |
MetadataChange(StorageMetadata original)Used to create a modified version of the original set of metadata. |
Properties | |
|---|---|
CacheControl | stringGets or sets the Cache Control for theStorageReference. |
ContentDisposition | stringGets or sets the content disposition for theStorageReference. |
ContentEncoding | stringGets or sets the content encoding for theStorageReference. |
ContentLanguage | stringGets or sets the content language for theStorageReference. |
ContentType | stringGets or sets the Content Type of this associatedStorageReference. |
CustomMetadata | IDictionary< string, string >Gets or sets custom metadata. |
Properties
ContentDisposition
stringContentDisposition
Gets or sets the content disposition for theStorageReference.
ContentLanguage
stringContentLanguage
Gets or sets the content language for theStorageReference.
This must be an ISO 639-1
two-letter language code. E.g. "zh", "es", "en".
CustomMetadata
IDictionary<string,string>CustomMetadata
Gets or sets custom metadata.
To use this in an object initalizer, you may use the form: var change = newMetadataChange { CustomMetadata = new Dictionary
Public functions
MetadataChange
MetadataChange()
Creates an empty set of metadata.
MetadataChange
MetadataChange(StorageMetadataoriginal)
Used to create a modified version of the original set of metadata.
| Details | |||
|---|---|---|---|
| Parameters |
|
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-06-17 UTC.