BlobSasBuilder.ToSasQueryParameters Method
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.
Overloads
ToSasQueryParameters(StorageSharedKeyCredential) |
Use an account's StorageSharedKeyCredential to sign this shared access signature values to produce the proper SAS query parameters for authenticating requests. |
ToSasQueryParameters(UserDelegationKey, String) |
Use an account's UserDelegationKey to sign this shared access signature values to produce the proper SAS query parameters for authenticating requests. |
ToSasQueryParameters(StorageSharedKeyCredential)
- Source:
- BlobSasBuilder.cs
- Source:
- BlobSasBuilder.cs
Use an account's StorageSharedKeyCredential to sign this shared access signature values to produce the proper SAS query parameters for authenticating requests.
public Azure.Storage.Sas.BlobSasQueryParameters ToSasQueryParameters (Azure.Storage.StorageSharedKeyCredential sharedKeyCredential);
member this.ToSasQueryParameters : Azure.Storage.StorageSharedKeyCredential -> Azure.Storage.Sas.BlobSasQueryParameters
Public Function ToSasQueryParameters (sharedKeyCredential As StorageSharedKeyCredential) As BlobSasQueryParameters
Parameters
- sharedKeyCredential
- StorageSharedKeyCredential
The storage account's StorageSharedKeyCredential.
Returns
The BlobSasQueryParameters used for authenticating requests.
Applies to
ToSasQueryParameters(UserDelegationKey, String)
- Source:
- BlobSasBuilder.cs
- Source:
- BlobSasBuilder.cs
Use an account's UserDelegationKey to sign this shared access signature values to produce the proper SAS query parameters for authenticating requests.
public Azure.Storage.Sas.BlobSasQueryParameters ToSasQueryParameters (Azure.Storage.Blobs.Models.UserDelegationKey userDelegationKey, string accountName);
member this.ToSasQueryParameters : Azure.Storage.Blobs.Models.UserDelegationKey * string -> Azure.Storage.Sas.BlobSasQueryParameters
Public Function ToSasQueryParameters (userDelegationKey As UserDelegationKey, accountName As String) As BlobSasQueryParameters
Parameters
- userDelegationKey
- UserDelegationKey
A UserDelegationKey returned from GetUserDelegationKeyAsync(Nullable<DateTimeOffset>, DateTimeOffset, CancellationToken).
- accountName
- String
The name of the storage account.
Returns
The BlobSasQueryParameters used for authenticating requests.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for