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
string
Gets or sets the Cache Control for theStorageReference.
ContentDisposition
string
Gets or sets the content disposition for theStorageReference.
ContentEncoding
string
Gets or sets the content encoding for theStorageReference.
ContentLanguage
string
Gets or sets the content language for theStorageReference.
ContentType
string
Gets or sets the Content Type of this associatedStorageReference.
CustomMetadata
IDictionary< string, string >
Gets or sets custom metadata.

Properties

CacheControl

stringCacheControl

Gets or sets the Cache Control for theStorageReference.

ContentDisposition

stringContentDisposition

Gets or sets the content disposition for theStorageReference.

ContentEncoding

stringContentEncoding

Gets or sets the content encoding 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".

ContentType

stringContentType

Gets or sets the Content Type of this associatedStorageReference.

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 { {"customkey1", "customValue1"}, {"customkey2", "customValue2"} } }

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
original
The source of the metadata to build from.

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.