Class MetadataCollection
This class contains the meta data for an S3 object.
public sealed class MetadataCollection
- Inheritance
-
MetadataCollection
- Inherited Members
Constructors
MetadataCollection()
public MetadataCollection()
Properties
Count
Gets the count of headers.
public int Count { get; }
Property Value
this[string]
Gets and sets meta data for the object. Meta data names must start with "x-amz-meta-". If the name passeed in as the indexer doesn't start with "x-amz-meta-" then it will be prepended.
public string this[string name] { get; set; }
Parameters
name
stringThe name of the meta data.
Property Value
- string
The value for the meta data
Keys
Gets the names of the meta data elements.
public ICollection<string> Keys { get; }
Property Value
Methods
Add(string, string)
Adds the metadata to the collection, if the name already exists it will be overwritten.
public void Add(string name, string value)