CloudTable.GetSharedAccessSignature Method (SharedAccessTablePolicy, String, String, String, String, String, String)

Windows Runtime Azure Storage Client Library

Returns a shared access signature for the table.

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

Usage

Visual Basic
Dim instance As CloudTable
Dim policy As SharedAccessTablePolicy
Dim accessPolicyIdentifier As String
Dim startPartitionKey As String
Dim startRowKey As String
Dim endPartitionKey As String
Dim endRowKey As String
Dim sasVersion As String
Dim returnValue As String

returnValue = instance.GetSharedAccessSignature(policy, accessPolicyIdentifier, startPartitionKey, startRowKey, endPartitionKey, endRowKey, sasVersion)

Syntax

Visual Basic
Public Function GetSharedAccessSignature ( _
	policy As SharedAccessTablePolicy, _
	accessPolicyIdentifier As String, _
	startPartitionKey As String, _
	startRowKey As String, _
	endPartitionKey As String, _
	endRowKey As String, _
	sasVersion As String _
) As String
C#
public string GetSharedAccessSignature (
	SharedAccessTablePolicy policy,
	string accessPolicyIdentifier,
	string startPartitionKey,
	string startRowKey,
	string endPartitionKey,
	string endRowKey,
	string sasVersion
)
C++
public:
String^ GetSharedAccessSignature (
	SharedAccessTablePolicy^ policy, 
	String^ accessPolicyIdentifier, 
	String^ startPartitionKey, 
	String^ startRowKey, 
	String^ endPartitionKey, 
	String^ endRowKey, 
	String^ sasVersion
)
J#
public String GetSharedAccessSignature (
	SharedAccessTablePolicy policy, 
	String accessPolicyIdentifier, 
	String startPartitionKey, 
	String startRowKey, 
	String endPartitionKey, 
	String endRowKey, 
	String sasVersion
)
JScript
public function GetSharedAccessSignature (
	policy : SharedAccessTablePolicy, 
	accessPolicyIdentifier : String, 
	startPartitionKey : String, 
	startRowKey : String, 
	endPartitionKey : String, 
	endRowKey : String, 
	sasVersion : String
) : String

Parameters

policy

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

accessPolicyIdentifier

A string identifying a stored access policy.

startPartitionKey

A string specifying the start partition key, or null.

startRowKey

A string specifying the start row key, or null.

endPartitionKey

A string specifying the end partition key, or null.

endRowKey

A string specifying the end row key, or null.

sasVersion

A string indicating the desired SAS version to use, in storage service version format. Value must be 2012-02-12 or later.

Return Value

A shared access signature, as a URI query string.

Exceptions

Exception typeCondition
InvalidOperationException

Thrown if the current credentials don't support creating a shared access signature.

Remarks

The query string returned includes the leading question mark.


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