CloudStorageAccount Constructor (StorageCredentials, Uri, Uri, Uri)

Storage Client Library NET API

[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.]

Initializes a new instance of the CloudStorageAccount class using the specified account credentials and service endpoints.

Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)

Usage

Visual Basic
Dim storageCredentials As StorageCredentials
Dim blobEndpoint As Uri
Dim queueEndpoint As Uri
Dim tableEndpoint As Uri

Dim instance As New CloudStorageAccount(storageCredentials, blobEndpoint, queueEndpoint, tableEndpoint)

Syntax

Visual Basic
Public Sub New ( _
	storageCredentials As StorageCredentials, _
	blobEndpoint As Uri, _
	queueEndpoint As Uri, _
	tableEndpoint As Uri _
)
C#
public CloudStorageAccount (
	StorageCredentials storageCredentials,
	Uri blobEndpoint,
	Uri queueEndpoint,
	Uri tableEndpoint
)
C++
public:
CloudStorageAccount (
	StorageCredentials^ storageCredentials, 
	Uri^ blobEndpoint, 
	Uri^ queueEndpoint, 
	Uri^ tableEndpoint
)
J#
JScript

Parameters

storageCredentials

Type: Microsoft.WindowsAzure.StorageCredentials

The account credentials.

blobEndpoint

Type: System.Uri

The Blob service endpoint.

queueEndpoint

Type: System.Uri

The Queue service endpoint.

tableEndpoint

Type: System.Uri

The Table service endpoint.

Remarks

Use this constructor to construct a CloudStorageAccount using custom endpoints, in the case where you've configured a custom domain name for your storage account.


Platforms

Development Platforms

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

See Also