Table of Contents

Class FileProperties

Namespace
Microsoft.WindowsAzure.Storage.File
Assembly
Microsoft.WindowsAzure.Storage.dll

Represents the system properties for a file.

public sealed class FileProperties
Inheritance
FileProperties
Inherited Members

Constructors

FileProperties()

Initializes a new instance of the FileProperties class.

public FileProperties()

FileProperties(FileProperties)

Initializes a new instance of the FileProperties class based on an existing instance.

public FileProperties(FileProperties other)

Parameters

other FileProperties

The set of file properties to clone.

Properties

CacheControl

Gets or sets the cache-control value stored for the file.

public string CacheControl { get; set; }

Property Value

string

The file's cache-control value.

ContentDisposition

Gets or sets the content-disposition value stored for the file.

public string ContentDisposition { get; set; }

Property Value

string

The file's content-disposition value.

Remarks

If this property has not been set for the file, it returns null.

ContentEncoding

Gets or sets the content-encoding value stored for the file.

public string ContentEncoding { get; set; }

Property Value

string

The file's content-encoding value.

Remarks

If this property has not been set for the file, it returns null.

ContentLanguage

Gets or sets the content-language value stored for the file.

public string ContentLanguage { get; set; }

Property Value

string

The file's content-language value.

Remarks

If this property has not been set for the file, it returns null.

ContentMD5

Gets or sets the content-MD5 value stored for the file.

public string ContentMD5 { get; set; }

Property Value

string

The file's content-MD5 hash.

ContentType

Gets or sets the content-type value stored for the file.

public string ContentType { get; set; }

Property Value

string

The file's content-type value.

Remarks

If this property has not been set for the file, it returns null.

ETag

Gets the file's ETag value.

public string ETag { get; }

Property Value

string

The file's ETag value.

IsServerEncrypted

Gets the file's server-side encryption state.

public bool IsServerEncrypted { get; }

Property Value

bool

A bool representing the file's server-side encryption state.

LastModified

Gets the the last-modified time for the file, expressed as a UTC value.

public DateTimeOffset? LastModified { get; }

Property Value

DateTimeOffset?

The file's last-modified time, in UTC format.

Length

Gets the size of the file, in bytes.

public long Length { get; }

Property Value

long

The file's size in bytes.