[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See Storage Client Library for the latest version.]
Constructs a canonicalized string from the request's headers that will be used to construct the signature string for signing a Blob or Queue service request under the Shared Key Lite authentication scheme. Namespace: Microsoft.WindowsAzure.StorageClient.Protocol
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Constructs a canonicalized string from the request's headers that will be used to construct the signature string for signing a Blob or Queue service request under the Shared Key Lite authentication scheme. Namespace: Microsoft.WindowsAzure.StorageClient.Protocol
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Usage
Visual Basic |
---|
Dim address As Uri Dim accountName As String Dim method As String Dim contentType As String Dim contentLength As Long Dim date As String Dim headers As NameValueCollection Dim returnValue As String returnValue = CanonicalizationStrategy.CanonicalizeHttpRequestVersion2(address, accountName, method, contentType, contentLength, date, headers) |
Syntax
Visual Basic |
---|
Protected Shared Function CanonicalizeHttpRequestVersion2 ( _ address As Uri, _ accountName As String, _ method As String, _ contentType As String, _ contentLength As Long, _ date As String, _ headers As NameValueCollection _ ) As String |
C# |
---|
protected static string CanonicalizeHttpRequestVersion2 ( Uri address, string accountName, string method, string contentType, long contentLength, string date, NameValueCollection headers ) |
C++ |
---|
protected: static String^ CanonicalizeHttpRequestVersion2 ( Uri^ address, String^ accountName, String^ method, String^ contentType, long long contentLength, String^ date, NameValueCollection^ headers ) |
J# |
---|
JScript |
---|
Parameters
- address
Type: System.Uri
The request URI.
- accountName
Type: System.String
The storage account name.
- method
Type: System.String
The verb to be used for the HTTP request.
- contentType
Type: System.String
The content type of the HTTP request.
- contentLength
Type: System.Int64
The length of the HTTP request, in bytes.
- date
Type: System.String
The date/time specification for the HTTP request.
- headers
Type: System.Collections.Specialized.NameValueCollection
A collection of additional headers specified on the HTTP request.
Return Value
Type: System.StringA canonicalized string.Remarks
For more details about this API, see the topics on the equivalent REST APIs in See Also > Other Resources.
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.