StorageAccountSasPolicy(String, ExpirationAction) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of StorageAccountSasPolicy.
public StorageAccountSasPolicy (string sasExpirationPeriod, Azure.ResourceManager.Storage.Models.ExpirationAction expirationAction);
new Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy : string * Azure.ResourceManager.Storage.Models.ExpirationAction -> Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy
Public Sub New (sasExpirationPeriod As String, expirationAction As ExpirationAction)
Parameters
- sasExpirationPeriod
- String
The SAS expiration period, DD.HH:MM:SS.
- expirationAction
- ExpirationAction
The SAS Expiration Action defines the action to be performed when sasPolicy.sasExpirationPeriod is violated. The 'Log' action can be used for audit purposes and the 'Block' action can be used to block and deny the usage of SAS tokens that do not adhere to the sas policy expiration period.
Exceptions
sasExpirationPeriod
is null.
Applies to
Azure SDK for .NET