Table of Contents

Class HeadersCollection

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

This class contains the headers for an S3 object.

public sealed class HeadersCollection
Inheritance
HeadersCollection
Inherited Members

Constructors

HeadersCollection()

public HeadersCollection()

Properties

CacheControl

Specifies caching behavior along the request/reply chain.

public string CacheControl { get; set; }

Property Value

string

ContentDisposition

Specifies presentational information for the object.

public string ContentDisposition { get; set; }

Property Value

string

ContentEncoding

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

public string ContentEncoding { get; set; }

Property Value

string

ContentLength

The size of the object, in bytes.

public long ContentLength { get; set; }

Property Value

long

ContentMD5

The base64-encoded 128-bit MD5 digest of the message (without the headers) according to RFC 1864. This header can be used as a message integrity check to verify that the data is the same data that was originally sent.

public string ContentMD5 { get; set; }

Property Value

string

ContentType

A standard MIME type describing the format of the object data.

public string ContentType { get; set; }

Property Value

string

Count

Gets the count of headers.

public int Count { get; }

Property Value

int

Expires

[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. Use ExpiresUtc instead.", false)]
public DateTime? Expires { get; set; }

Property Value

DateTime?

ExpiresUtc

The date and time at which the object is no longer cacheable.

public DateTime? ExpiresUtc { get; set; }

Property Value

DateTime?

this[string]

Gets and sets headers to set for the object.

public string this[string name] { get; set; }

Parameters

name string

The name of the header

Property Value

string

The value for the header

Keys

Gets the names of the headers set.

public ICollection<string> Keys { get; }

Property Value

ICollection<string>