共用方式為


ShareClient.GenerateSasUri Method

Definition

Overloads

GenerateSasUri(ShareSasPermissions, DateTimeOffset)

The GenerateSasUri(ShareSasPermissions, DateTimeOffset) returns a Uri that generates a Share Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a service SAS.

GenerateSasUri(ShareSasBuilder)

The GenerateSasUri(ShareSasBuilder) returns a Uri that generates a Blob Container Service Shared Access Signature (SAS) Uri based on the Client properties and builder passed. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a Service SAS.

GenerateSasUri(ShareSasPermissions, DateTimeOffset)

Source:
ShareClient.cs
Source:
ShareClient.cs

The GenerateSasUri(ShareSasPermissions, DateTimeOffset) returns a Uri that generates a Share Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a service SAS.

public virtual Uri GenerateSasUri (Azure.Storage.Sas.ShareSasPermissions permissions, DateTimeOffset expiresOn);
abstract member GenerateSasUri : Azure.Storage.Sas.ShareSasPermissions * DateTimeOffset -> Uri
override this.GenerateSasUri : Azure.Storage.Sas.ShareSasPermissions * DateTimeOffset -> Uri
Public Overridable Function GenerateSasUri (permissions As ShareSasPermissions, expiresOn As DateTimeOffset) As Uri

Parameters

permissions
ShareSasPermissions

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

expiresOn
DateTimeOffset

Required. Specifies the time at which the SAS becomes invalid. This field must be omitted if it has been specified in an associated stored access policy.

Returns

Uri

A Uri containing the SAS Uri.

Remarks

A Exception will be thrown if a failure occurs.

Applies to

GenerateSasUri(ShareSasBuilder)

Source:
ShareClient.cs
Source:
ShareClient.cs

The GenerateSasUri(ShareSasBuilder) returns a Uri that generates a Blob Container Service Shared Access Signature (SAS) Uri based on the Client properties and builder passed. The SAS is signed by the shared key credential of the client.

To check if the client is able to sign a Service Sas see CanGenerateSasUri.

For more information, see Constructing a Service SAS.

public virtual Uri GenerateSasUri (Azure.Storage.Sas.ShareSasBuilder builder);
abstract member GenerateSasUri : Azure.Storage.Sas.ShareSasBuilder -> Uri
override this.GenerateSasUri : Azure.Storage.Sas.ShareSasBuilder -> Uri
Public Overridable Function GenerateSasUri (builder As ShareSasBuilder) As Uri

Parameters

builder
ShareSasBuilder

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