QueueServiceClient.GenerateAccountSasUri Method

Definition

Overloads

GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes)

The GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes) returns a Uri that generates a Queue Account Shared Access Signature based on the Client properties and parameters passed. The SAS is signed by the shared key credential of the client.

For more information, see Constructing a Service SAS

GenerateAccountSasUri(AccountSasBuilder)

The GenerateAccountSasUri(AccountSasBuilder) returns a Uri that generates a Service SAS based on the Client properties and builder passed.

For more information, see Constructing a Service SAS

GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

The GenerateAccountSasUri(AccountSasPermissions, DateTimeOffset, AccountSasResourceTypes) returns a Uri that generates a Queue Account Shared Access Signature based on the Client properties and parameters passed. The SAS is signed by the shared key credential of the client.

For more information, see Constructing a Service SAS

C#
public Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasPermissions permissions, DateTimeOffset expiresOn, Azure.Storage.Sas.AccountSasResourceTypes resourceTypes);

Parameters

permissions
AccountSasPermissions

Required. Specifies the list of permissions to be associated with the SAS. See AccountSasPermissions.

expiresOn
DateTimeOffset

Required. The time at which the shared access signature becomes invalid.

resourceTypes
AccountSasResourceTypes

Specifies the resource types associated with the shared access signature. The user is restricted to operations on the specified resources. See AccountSasResourceTypes.

Returns

Uri

A Uri containing the SAS Uri.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to

Azure SDK for .NET Preview en Azure SDK for .NET Latest
Product Versies
Azure SDK for .NET Latest, Preview

GenerateAccountSasUri(AccountSasBuilder)

Source:
QueueServiceClient.cs
Source:
QueueServiceClient.cs

The GenerateAccountSasUri(AccountSasBuilder) returns a Uri that generates a Service SAS based on the Client properties and builder passed.

For more information, see Constructing a Service SAS

C#
public Uri GenerateAccountSasUri(Azure.Storage.Sas.AccountSasBuilder builder);

Parameters

builder
AccountSasBuilder

Used to generate a Shared Access Signature (SAS).

Returns

Uri

A Uri containing the SAS Uri.

Remarks

A Exception will be thrown if a failure occurs.

Applies to

Azure SDK for .NET Preview en Azure SDK for .NET Latest
Product Versies
Azure SDK for .NET Latest, Preview