C#
C++
F#
VB
CloudStorageAccount Constructor (StorageCredentials, String, Boolean)(StorageCredentials^, String^, Boolean)(StorageCredentials, String, Boolean)(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.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
public CloudStorageAccount( StorageCredentials storageCredentials, string endpointSuffix, bool useHttps )
C++
public: CloudStorageAccount( StorageCredentials^ storageCredentials, String^ endpointSuffix, bool useHttps )
new :
storageCredentials:StorageCredentials *
endpointSuffix:string *
useHttps:bool -> CloudStorageAccount
Public Sub New ( storageCredentials As StorageCredentials, 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.
- 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.
See Also
CloudStorageAccount Overload
CloudStorageAccount Class
Microsoft.WindowsAzure.Storage Namespace