Dela via


CloudStorageAccount Constructors

Definition

Overloads

CloudStorageAccount(StorageCredentials, StorageUri)

Initializes a new instance of the CloudStorageAccount class using the specified account 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.

CloudStorageAccount(StorageCredentials, Uri)

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

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)

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

public CloudStorageAccount (Microsoft.Azure.Cosmos.Table.StorageCredentials storageCredentials, Microsoft.Azure.Cosmos.Table.StorageUri tableStorageUri);
new Microsoft.Azure.Cosmos.Table.CloudStorageAccount : Microsoft.Azure.Cosmos.Table.StorageCredentials * Microsoft.Azure.Cosmos.Table.StorageUri -> Microsoft.Azure.Cosmos.Table.CloudStorageAccount
Public Sub New (storageCredentials As StorageCredentials, tableStorageUri As StorageUri)

Parameters

storageCredentials
StorageCredentials

A StorageCredentials object.

tableStorageUri
StorageUri

A StorageUri specifying the Table service endpoint or endpoints.

Applies to

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.Cosmos.Table.StorageCredentials storageCredentials, bool useHttps);
new Microsoft.Azure.Cosmos.Table.CloudStorageAccount : Microsoft.Azure.Cosmos.Table.StorageCredentials * bool -> Microsoft.Azure.Cosmos.Table.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, Uri)

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

public CloudStorageAccount (Microsoft.Azure.Cosmos.Table.StorageCredentials storageCredentials, Uri tableEndpoint);
new Microsoft.Azure.Cosmos.Table.CloudStorageAccount : Microsoft.Azure.Cosmos.Table.StorageCredentials * Uri -> Microsoft.Azure.Cosmos.Table.CloudStorageAccount
Public Sub New (storageCredentials As StorageCredentials, tableEndpoint As Uri)

Parameters

storageCredentials
StorageCredentials

A StorageCredentials object.

tableEndpoint
Uri

A Uri specifying the primary Table service endpoint.

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.Cosmos.Table.StorageCredentials storageCredentials, string endpointSuffix, bool useHttps);
new Microsoft.Azure.Cosmos.Table.CloudStorageAccount : Microsoft.Azure.Cosmos.Table.StorageCredentials * string * bool -> Microsoft.Azure.Cosmos.Table.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.Cosmos.Table.StorageCredentials storageCredentials, string accountName, string endpointSuffix, bool useHttps);
new Microsoft.Azure.Cosmos.Table.CloudStorageAccount : Microsoft.Azure.Cosmos.Table.StorageCredentials * string * string * bool -> Microsoft.Azure.Cosmos.Table.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