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
string Bucket
| Details | |
|---|---|
| Returns | the owning Google Cloud Storage bucket for 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 |
CreationTimeMillis
DateTime CreationTimeMillis
| Details | |
|---|---|
| Returns | the time the StorageReference was created. |
CustomMetadataKeys
IEnumerable< string > CustomMetadataKeys
| Details | |
|---|---|
| Returns | the keys for custom metadata. |
Generation
string Generation
| Details | |
|---|---|
| Returns | a version String indicating what version of the StorageReference |
MetadataGeneration
string MetadataGeneration
| Details | |
|---|---|
| Returns | a version String indicating the version of this StorageMetadata |
Reference
StorageReference Reference
| Details | |
|---|---|
| Returns | the associated StorageReference for which this metadata belongs to. |
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 |
| ||
| Returns | the metadata stored in the object the given key. |
StorageMetadata
StorageMetadata()
Creates a StorageMetadata object to hold metadata for a StorageReference