CloudFileShare.GetSharedAccessSignature 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
GetSharedAccessSignature(SharedAccessFilePolicy) |
Returns a shared access signature for the share. |
GetSharedAccessSignature(SharedAccessFilePolicy, String) |
Returns a shared access signature for the share. |
GetSharedAccessSignature(SharedAccessFilePolicy, String, Nullable<SharedAccessProtocol>, IPAddressOrRange) |
Returns a shared access signature for the share. |
GetSharedAccessSignature(SharedAccessFilePolicy)
Returns a shared access signature for the share.
public string GetSharedAccessSignature (Microsoft.Azure.Storage.File.SharedAccessFilePolicy policy);
member this.GetSharedAccessSignature : Microsoft.Azure.Storage.File.SharedAccessFilePolicy -> string
Public Function GetSharedAccessSignature (policy As SharedAccessFilePolicy) As String
Parameters
- policy
- SharedAccessFilePolicy
A SharedAccessFilePolicy object specifying the access policy for the shared access signature.
Returns
A shared access signature, as a URI query string.
Remarks
The query string returned includes the leading question mark.
Applies to
GetSharedAccessSignature(SharedAccessFilePolicy, String)
Returns a shared access signature for the share.
public string GetSharedAccessSignature (Microsoft.Azure.Storage.File.SharedAccessFilePolicy policy, string groupPolicyIdentifier);
member this.GetSharedAccessSignature : Microsoft.Azure.Storage.File.SharedAccessFilePolicy * string -> string
Public Function GetSharedAccessSignature (policy As SharedAccessFilePolicy, groupPolicyIdentifier As String) As String
Parameters
- policy
- SharedAccessFilePolicy
A SharedAccessFilePolicy object specifying the access policy for the shared access signature.
- groupPolicyIdentifier
- String
A share-level access policy.
Returns
A shared access signature, as a URI query string.
Remarks
The query string returned includes the leading question mark.
Applies to
GetSharedAccessSignature(SharedAccessFilePolicy, String, Nullable<SharedAccessProtocol>, IPAddressOrRange)
Returns a shared access signature for the share.
public string GetSharedAccessSignature (Microsoft.Azure.Storage.File.SharedAccessFilePolicy policy, string groupPolicyIdentifier, Microsoft.Azure.Storage.SharedAccessProtocol? protocols, Microsoft.Azure.Storage.IPAddressOrRange ipAddressOrRange);
member this.GetSharedAccessSignature : Microsoft.Azure.Storage.File.SharedAccessFilePolicy * string * Nullable<Microsoft.Azure.Storage.SharedAccessProtocol> * Microsoft.Azure.Storage.IPAddressOrRange -> string
Public Function GetSharedAccessSignature (policy As SharedAccessFilePolicy, groupPolicyIdentifier As String, protocols As Nullable(Of SharedAccessProtocol), ipAddressOrRange As IPAddressOrRange) As String
Parameters
- policy
- SharedAccessFilePolicy
A SharedAccessFilePolicy object specifying the access policy for the shared access signature.
- groupPolicyIdentifier
- String
A share-level access policy.
- 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
A shared access signature, as a URI query string.
Remarks
The query string returned includes the leading question mark.
Applies to
Azure SDK for .NET