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.
DownloadUrl
Uri
Returns a long lived download URL with a revokable token.
DownloadUrls
IList< Uri >
Returns
all unguessable Urls that can be used to download the StorageReference
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

string Bucket

Details
Returns
the owning Google Cloud Storage bucket for the StorageReference

CacheControl

string CacheControl

Details
Returns
the Cache Control setting of the StorageReference

ContentDisposition

string ContentDisposition

Details
Returns
the content disposition of the StorageReference

ContentEncoding

string ContentEncoding

Details
Returns
the content encoding for the StorageReference

ContentLanguage

string ContentLanguage

Details
Returns
the content language for the StorageReference

ContentType

string ContentType

Details
Returns
the content type of the StorageReference

CreationTimeMillis

DateTime CreationTimeMillis

Details
Returns
the time the StorageReference was created.

CustomMetadataKeys

IEnumerable< string > CustomMetadataKeys

Details
Returns
the keys for custom metadata.

DownloadUrl

Uri DownloadUrl

Returns a long lived download URL with a revokable token.

Returns a long lived download URL with a revokable token. This can be used to share the file with others, but can be revoked by a developer in the Firebase Console if desired.

Details
Returns

DownloadUrls

IList< Uri > DownloadUrls

Details
Returns
all unguessable Urls that can be used to download the StorageReference

Generation

string Generation

Details
Returns
a version String indicating what version of the StorageReference

Md5Hash

string Md5Hash

Details
Returns
the MD5Hash of the StorageReference object

MetadataGeneration

string MetadataGeneration

Details
Returns
a version String indicating the version of this StorageMetadata

Name

string Name

Details
Returns
a simple name of the StorageReference object

Path

string Path

Details
Returns
the path of the StorageReference object

Reference

StorageReference Reference

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

SizeBytes

long SizeBytes

Details
Returns
the stored Size in bytes of the StorageReference object

UpdatedTimeMillis

DateTime UpdatedTimeMillis

Details
Returns
the time the StorageReference was last updated.

,

Public functions

GetCustomMetadata

string GetCustomMetadata(
  string key
)

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

Send feedback about...

Need help? Visit our support page.