Class SharedAccessBlobPolicy
- Namespace
- Microsoft.WindowsAzure.Storage.Blob
- Assembly
- Microsoft.WindowsAzure.Storage.dll
Represents a shared access policy, which specifies the start time, expiry time, and permissions for a shared access signature.
public sealed class SharedAccessBlobPolicy
- Inheritance
-
SharedAccessBlobPolicy
- Inherited Members
Constructors
SharedAccessBlobPolicy()
Initializes a new instance of the SharedAccessBlobPolicy class.
public SharedAccessBlobPolicy()
Properties
Permissions
Gets or sets the permissions for a shared access signature associated with this shared access policy.
public SharedAccessBlobPermissions Permissions { get; set; }
Property Value
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
PermissionsFromString(string)
Constructs a SharedAccessBlobPermissions object from a permissions string.
public static SharedAccessBlobPermissions PermissionsFromString(string input)
Parameters
input
stringThe shared access permissions, in string format.
Returns
PermissionsToString(SharedAccessBlobPermissions)
Converts the permissions specified for the shared access policy to a string.
public static string PermissionsToString(SharedAccessBlobPermissions permissions)
Parameters
permissions
SharedAccessBlobPermissionsA SharedAccessBlobPermissions object.
Returns
- string
The shared access permissions, in string format.