Table of Contents

Class SharedAccessAccountPolicy

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

Represents a shared access policy for a account, which specifies the start time, expiry time, permissions, signed service, signed resource type, signed protocol, and signed IP addresses for a shared access signature.

public sealed class SharedAccessAccountPolicy
Inheritance
SharedAccessAccountPolicy
Inherited Members

Constructors

SharedAccessAccountPolicy()

Initializes a new instance of the SharedAccessAccountPolicy class.

public SharedAccessAccountPolicy()

Properties

IPAddressOrRange

Gets or sets the allowed IP address or IP address range for a shared access signature associated with this shared access policy.

public IPAddressOrRange IPAddressOrRange { get; set; }

Property Value

IPAddressOrRange

Permissions

Gets or sets the permissions for a shared access signature associated with this shared access policy.

public SharedAccessAccountPermissions Permissions { get; set; }

Property Value

SharedAccessAccountPermissions

A SharedAccessAccountPermissions object.

Protocols

Gets or sets the allowed protocols for a shared access signature associated with this shared access policy.

public SharedAccessProtocol? Protocols { get; set; }

Property Value

SharedAccessProtocol?

ResourceTypes

Gets or sets the resource type for a shared access signature associated with this shared access policy.

public SharedAccessAccountResourceTypes ResourceTypes { get; set; }

Property Value

SharedAccessAccountResourceTypes

Services

Gets or sets the services (blob, file, queue, table) for a shared access signature associated with this shared access policy.

public SharedAccessAccountServices Services { get; set; }

Property Value

SharedAccessAccountServices

SharedAccessExpiryTime

Gets or sets the expiry time for a shared access signature associated with this shared access policy.

public DateTimeOffset? SharedAccessExpiryTime { get; set; }

Property Value

DateTimeOffset?

A DateTimeOffset specifying the shared access expiry time.

SharedAccessStartTime

Gets or sets the start time for a shared access signature associated with this shared access policy.

public DateTimeOffset? SharedAccessStartTime { get; set; }

Property Value

DateTimeOffset?

A DateTimeOffset specifying the shared access start time.

Methods

PermissionsToString(SharedAccessAccountPermissions)

Converts the permissions specified for the shared access policy to a string.

public static string PermissionsToString(SharedAccessAccountPermissions permissions)

Parameters

permissions SharedAccessAccountPermissions

A SharedAccessAccountPermissions object.

Returns

string

The shared access permissions in string format.

ResourceTypesToString(SharedAccessAccountResourceTypes)

Converts the ResourceTypes specified for the shared access policy to a string.

public static string ResourceTypesToString(SharedAccessAccountResourceTypes resourceTypes)

Parameters

resourceTypes SharedAccessAccountResourceTypes

A SharedAccessAccountResourceTypes object.

Returns

string

The shared access resource types in string format.

ServicesToString(SharedAccessAccountServices)

Converts the services specified for the shared access policy to a string.

public static string ServicesToString(SharedAccessAccountServices services)

Parameters

services SharedAccessAccountServices

A SharedAccessAccountServices object.

Returns

string

The shared access services in string format.