Firebase.Storage.StorageMetadata

Metadata for a StorageReference Metadata stores default attributes such as size and content type.

Summary

You may also store custom metadata key value pairs. Metadata values may be used to authorize operations using declarative validation rules. This class is readonly. To create or change metadata, use MetadataChange.

Constructors and Destructors

StorageMetadata()
Creates a StorageMetadata object to hold metadata for a StorageReference

Properties

Bucket
string
Returns
the owning Google Cloud Storage bucket for the StorageReference
CacheControl
string
Returns
the Cache Control setting of the StorageReference
ContentDisposition
string
Returns
the content disposition of the StorageReference
ContentEncoding
string
Returns
the content encoding for the StorageReference
ContentLanguage
string
Returns
the content language for the StorageReference
ContentType
string
Returns
the content type of the StorageReference
CreationTimeMillis
DateTime
Returns
the time the StorageReference was created.
CustomMetadataKeys
IEnumerable< string >
Returns
the keys for custom metadata.
Generation
string
Returns
a version String indicating what version of the StorageReference
Md5Hash
string
Returns
the MD5Hash of the StorageReference object
MetadataGeneration
string
Returns
a version String indicating the version of this StorageMetadata
Name
string
Returns
a simple name of the StorageReference object
Path
string
Returns
the path of the StorageReference object
Reference
Returns
the associated StorageReference for which this metadata belongs to.
SizeBytes
long
Returns
the stored Size in bytes of the StorageReference object
UpdatedTimeMillis
DateTime
Returns
the time the StorageReference was last updated.

Public functions

GetCustomMetadata(string key)
string
Returns custom metadata for a StorageReference

Properties

Bucket

stringBucket

Details
Returns
the owning Google Cloud Storage bucket for the StorageReference

CacheControl

stringCacheControl

Details
Returns
the Cache Control setting of the StorageReference

ContentDisposition

stringContentDisposition

Details
Returns
the content disposition of the StorageReference

ContentEncoding

stringContentEncoding

Details
Returns
the content encoding for the StorageReference

ContentLanguage

stringContentLanguage

Details
Returns
the content language for the StorageReference

ContentType

stringContentType

Details
Returns
the content type of the StorageReference

CreationTimeMillis

DateTimeCreationTimeMillis

Details
Returns
the time the StorageReference was created.

CustomMetadataKeys

IEnumerable<string>CustomMetadataKeys

Details
Returns
the keys for custom metadata.

Generation

stringGeneration

Details
Returns
a version String indicating what version of the StorageReference

Md5Hash

stringMd5Hash

Details
Returns
the MD5Hash of the StorageReference object

MetadataGeneration

stringMetadataGeneration

Details
Returns
a version String indicating the version of this StorageMetadata

Name

stringName

Details
Returns
a simple name of the StorageReference object

Path

stringPath

Details
Returns
the path of the StorageReference object

Reference

StorageReferenceReference

Details
Returns
the associated StorageReference for which this metadata belongs to.

SizeBytes

longSizeBytes

Details
Returns
the stored Size in bytes of the StorageReference object

UpdatedTimeMillis

DateTimeUpdatedTimeMillis

Details
Returns
the time the StorageReference was last updated.

Public functions

GetCustomMetadata

stringGetCustomMetadata(stringkey)

Returns custom metadata for a StorageReference

Details
Parameters
key
The key for which the metadata should be returned
Returns
the metadata stored in the object the given key.

StorageMetadata

StorageMetadata()

Creates a StorageMetadata object to hold metadata for a StorageReference