Storage Client Library for Windows Phone (Version 7.0)

Microsoft Windows Azure Storage Blob

Initializes a new instance of the CloudStorageAccount class using the specified credentials and endpoint suffix, and specifies whether to use HTTP or HTTPS to connect to the storage services.

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

Syntax

 
public CloudStorageAccount(
	StorageCredentials storageCredentials,
	string accountName,
	string endpointSuffix,
	bool useHttps
)
 
public:
CloudStorageAccount(
	StorageCredentials^ storageCredentials,
	String^ accountName,
	String^ endpointSuffix,
	bool useHttps
)
 
new : 
        storageCredentials:StorageCredentials *
        accountName:string *
        endpointSuffix:string *
        useHttps:bool -> CloudStorageAccount
 
Public Sub New (
	storageCredentials As StorageCredentials,
	accountName As String,
	endpointSuffix As String,
	useHttps As Boolean
)

Parameters

storageCredentials
Type: Microsoft.WindowsAzure.Storage.Auth.StorageCredentialsMicrosoft.WindowsAzure.Storage.Auth::StorageCredentials^Microsoft.WindowsAzure.Storage.Auth.StorageCredentialsMicrosoft.WindowsAzure.Storage.Auth.StorageCredentials

A StorageCredentials object.

accountName
Type: System.StringSystem::String^System.StringSystem.String

The name of the account.

endpointSuffix
Type: System.StringSystem::String^System.StringSystem.String

The DNS endpoint suffix for all storage services, e.g. "core.windows.net".

useHttps
Type: System.BooleanSystem::BooleanSystem.BooleanSystem.Boolean

true to use HTTPS to connect to storage service endpoints; otherwise, false.

Remarks

Using HTTPS to connect to the storage services is recommended.

Return to top