CloudBlockBlob.GetSharedAccessSignature Method (SharedAccessBlobPolicy, SharedAccessBlobHeaders, String)

Windows Runtime Azure Storage Client Library

Returns a shared access signature for the blob.

Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)

Usage

Visual Basic
Dim instance As CloudBlockBlob
Dim policy As SharedAccessBlobPolicy
Dim headers As SharedAccessBlobHeaders
Dim groupPolicyIdentifier As String
Dim returnValue As String

returnValue = instance.GetSharedAccessSignature(policy, headers, groupPolicyIdentifier)

Syntax

Visual Basic
Public Function GetSharedAccessSignature ( _
	policy As SharedAccessBlobPolicy, _
	headers As SharedAccessBlobHeaders, _
	groupPolicyIdentifier As String _
) As String
C#
public string GetSharedAccessSignature (
	SharedAccessBlobPolicy policy,
	SharedAccessBlobHeaders headers,
	string groupPolicyIdentifier
)
C++
public:
virtual String^ GetSharedAccessSignature (
	SharedAccessBlobPolicy^ policy, 
	SharedAccessBlobHeaders^ headers, 
	String^ groupPolicyIdentifier
) sealed
J#
public final String GetSharedAccessSignature (
	SharedAccessBlobPolicy policy, 
	SharedAccessBlobHeaders headers, 
	String groupPolicyIdentifier
)
JScript
public final function GetSharedAccessSignature (
	policy : SharedAccessBlobPolicy, 
	headers : SharedAccessBlobHeaders, 
	groupPolicyIdentifier : String
) : String

Parameters

policy

A SharedAccessBlobPolicy object specifying the access policy for the shared access signature.

headers

A SharedAccessBlobHeaders object specifying optional header values to set for a blob accessed with this SAS.

groupPolicyIdentifier

A string identifying a stored access policy.

Return Value

A shared access signature, as a URI query string.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also