CloudBlobContainer.GetUserDelegationSharedAccessSignature 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.
Returns an user-delegation-based shared access signature for the container, with credentials solely based on the UserDelegationKey provided.
public string GetUserDelegationSharedAccessSignature (Microsoft.Azure.Storage.UserDelegationKey delegationKey, Microsoft.Azure.Storage.Blob.SharedAccessBlobPolicy policy, Microsoft.Azure.Storage.Blob.SharedAccessBlobHeaders headers = default, Microsoft.Azure.Storage.SharedAccessProtocol? protocols = default, Microsoft.Azure.Storage.IPAddressOrRange ipAddressOrRange = default);
member this.GetUserDelegationSharedAccessSignature : Microsoft.Azure.Storage.UserDelegationKey * Microsoft.Azure.Storage.Blob.SharedAccessBlobPolicy * Microsoft.Azure.Storage.Blob.SharedAccessBlobHeaders * Nullable<Microsoft.Azure.Storage.SharedAccessProtocol> * Microsoft.Azure.Storage.IPAddressOrRange -> string
Public Function GetUserDelegationSharedAccessSignature (delegationKey As UserDelegationKey, policy As SharedAccessBlobPolicy, Optional headers As SharedAccessBlobHeaders = Nothing, Optional protocols As Nullable(Of SharedAccessProtocol) = Nothing, Optional ipAddressOrRange As IPAddressOrRange = Nothing) As String
Parameters
- delegationKey
- UserDelegationKey
UserDelegationKey for signing this SAS token.
- policy
- SharedAccessBlobPolicy
A SharedAccessBlobPolicy object specifying the access policy for the shared access signature.
- headers
- SharedAccessBlobHeaders
A SharedAccessBlobHeaders object specifying optional header values to set for a blob container accessed with this SAS.
- protocols
- Nullable<SharedAccessProtocol>
The allowed protocols (https only, or http and https). Null if you don't want to restrict protocol.
- ipAddressOrRange
- IPAddressOrRange
The allowed IP address or IP address range. Null if you don't want to restrict based on IP address.
Returns
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應