CloudStorageAccount Constructors

Definition

Overloads

CloudStorageAccount(StorageCredentials, Boolean)

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

CloudStorageAccount(StorageCredentials, String, Boolean)

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.

CloudStorageAccount(StorageCredentials, String, String, Boolean)

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.

CloudStorageAccount(StorageCredentials, StorageUri, StorageUri, StorageUri, StorageUri)

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

CloudStorageAccount(StorageCredentials, Uri, Uri, Uri, Uri)

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

CloudStorageAccount(StorageCredentials, Boolean)

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

public CloudStorageAccount (Microsoft.Azure.Storage.Auth.StorageCredentials storageCredentials, bool useHttps);
new Microsoft.Azure.Storage.CloudStorageAccount : Microsoft.Azure.Storage.Auth.StorageCredentials * bool -> Microsoft.Azure.Storage.CloudStorageAccount
Public Sub New (storageCredentials As StorageCredentials, useHttps As Boolean)

Parameters

storageCredentials
StorageCredentials

A StorageCredentials object.

useHttps
Boolean

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

Remarks

Using HTTPS to connect to the storage services is recommended.

Applies to

CloudStorageAccount(StorageCredentials, String, Boolean)

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.

public CloudStorageAccount (Microsoft.Azure.Storage.Auth.StorageCredentials storageCredentials, string endpointSuffix, bool useHttps);
new Microsoft.Azure.Storage.CloudStorageAccount : Microsoft.Azure.Storage.Auth.StorageCredentials * string * bool -> Microsoft.Azure.Storage.CloudStorageAccount
Public Sub New (storageCredentials As StorageCredentials, endpointSuffix As String, useHttps As Boolean)

Parameters

storageCredentials
StorageCredentials

A StorageCredentials object.

endpointSuffix
String

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

useHttps
Boolean

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

Remarks

Using HTTPS to connect to the storage services is recommended.

Applies to

CloudStorageAccount(StorageCredentials, String, String, Boolean)

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.

public CloudStorageAccount (Microsoft.Azure.Storage.Auth.StorageCredentials storageCredentials, string accountName, string endpointSuffix, bool useHttps);
new Microsoft.Azure.Storage.CloudStorageAccount : Microsoft.Azure.Storage.Auth.StorageCredentials * string * string * bool -> Microsoft.Azure.Storage.CloudStorageAccount
Public Sub New (storageCredentials As StorageCredentials, accountName As String, endpointSuffix As String, useHttps As Boolean)

Parameters

storageCredentials
StorageCredentials

A StorageCredentials object.

accountName
String

The name of the account.

endpointSuffix
String

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

useHttps
Boolean

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

Remarks

Using HTTPS to connect to the storage services is recommended.

Applies to

CloudStorageAccount(StorageCredentials, StorageUri, StorageUri, StorageUri, StorageUri)

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

public CloudStorageAccount (Microsoft.Azure.Storage.Auth.StorageCredentials storageCredentials, Microsoft.Azure.Storage.StorageUri blobStorageUri, Microsoft.Azure.Storage.StorageUri queueStorageUri, Microsoft.Azure.Storage.StorageUri tableStorageUri, Microsoft.Azure.Storage.StorageUri fileStorageUri);
new Microsoft.Azure.Storage.CloudStorageAccount : Microsoft.Azure.Storage.Auth.StorageCredentials * Microsoft.Azure.Storage.StorageUri * Microsoft.Azure.Storage.StorageUri * Microsoft.Azure.Storage.StorageUri * Microsoft.Azure.Storage.StorageUri -> Microsoft.Azure.Storage.CloudStorageAccount
Public Sub New (storageCredentials As StorageCredentials, blobStorageUri As StorageUri, queueStorageUri As StorageUri, tableStorageUri As StorageUri, fileStorageUri As StorageUri)

Parameters

storageCredentials
StorageCredentials

A StorageCredentials object.

blobStorageUri
StorageUri

A StorageUri specifying the Blob service endpoint or endpoints.

queueStorageUri
StorageUri

A StorageUri specifying the Queue service endpoint or endpoints.

tableStorageUri
StorageUri

A StorageUri specifying the Table service endpoint or endpoints.

fileStorageUri
StorageUri

A StorageUri specifying the File service endpoint or endpoints.

Applies to

CloudStorageAccount(StorageCredentials, Uri, Uri, Uri, Uri)

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

public CloudStorageAccount (Microsoft.Azure.Storage.Auth.StorageCredentials storageCredentials, Uri blobEndpoint, Uri queueEndpoint, Uri tableEndpoint, Uri fileEndpoint);
new Microsoft.Azure.Storage.CloudStorageAccount : Microsoft.Azure.Storage.Auth.StorageCredentials * Uri * Uri * Uri * Uri -> Microsoft.Azure.Storage.CloudStorageAccount
Public Sub New (storageCredentials As StorageCredentials, blobEndpoint As Uri, queueEndpoint As Uri, tableEndpoint As Uri, fileEndpoint As Uri)

Parameters

storageCredentials
StorageCredentials

A StorageCredentials object.

blobEndpoint
Uri

A Uri specifying the primary Blob service endpoint.

queueEndpoint
Uri

A Uri specifying the primary Queue service endpoint.

tableEndpoint
Uri

A Uri specifying the primary Table service endpoint.

fileEndpoint
Uri

A Uri specifying the primary File service endpoint.

Applies to