<PackageReference Include="Microsoft.Azure.Storage.File" Version="11.1.2" />

Microsoft.Azure.Storage.File.SharedAccessFilePolicy

public sealed class SharedAccessFilePolicy
Represents a shared access policy, which specifies the start time, expiry time, and permissions for a shared access signature.

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

public DateTimeOffset? SharedAccessExpiryTime { get; set; }

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

public DateTimeOffset? SharedAccessStartTime { get; set; }

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

Initializes a new instance of the SharedAccessFilePolicy class.

Constructs a SharedAccessFilePermissions object from a permissions string.

public static string PermissionsToString(SharedAccessFilePermissions permissions)

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