StorageCredentials Constructor (String, String)

Windows Runtime Azure Storage Client Library

Initializes a new instance of the StorageCredentials class with the specified account name and key value.

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

Usage

Visual Basic
Dim accountName As String
Dim keyValue As String

Dim instance As New StorageCredentials(accountName, keyValue)

Syntax

Visual Basic
Public Sub New ( _
	accountName As String, _
	keyValue As String _
)
C#
public StorageCredentials (
	string accountName,
	string keyValue
)
C++
public:
StorageCredentials (
	String^ accountName, 
	String^ keyValue
)
J#
public StorageCredentials (
	String accountName, 
	String keyValue
)
JScript
public function StorageCredentials (
	accountName : String, 
	keyValue : String
)

Parameters

accountName

A string that represents the name of the storage account.

keyValue

A string that represents the Base64-encoded account access key.

Remarks


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