Table of Contents

Class MetadataCollection

Namespace
Amazon.S3.Model
Assembly
AWSSDK.S3.dll

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

int

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 string

The 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

ICollection<string>

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)

Parameters

name string

The name of the metadata element

value string

The value for the metadata