CloudStorageAccount Constructor (StorageCredentials, String, String, Boolean) (Microsoft.WindowsAzure.Storage)
From Microsoft Windows Azure Storage Blob
C#
C++
F#
VB
CloudStorageAccount Constructor (StorageCredentials, String, String, Boolean)(StorageCredentials^, String^, String^, Boolean)(StorageCredentials, String, String, Boolean)(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.
Namespace:
Microsoft.WindowsAzure.Storage
Assembly:
Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
public CloudStorageAccount(
StorageCredentials storageCredentials,
string accountName,
string endpointSuffix,
bool useHttps
)
C++
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.
See Also
CloudStorageAccount Overload
CloudStorageAccount Class
Microsoft.WindowsAzure.Storage Namespace
Return to top
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.
Syntax
public CloudStorageAccount( StorageCredentials storageCredentials, string accountName, string endpointSuffix, bool useHttps )
C++
public: CloudStorageAccount( StorageCredentials^ storageCredentials, String^ accountName, String^ endpointSuffix, bool useHttps )
new :
storageCredentials:StorageCredentials *
accountName:string *
endpointSuffix:string *
useHttps:bool -> CloudStorageAccountPublic 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.
See Also
CloudStorageAccount Overload
CloudStorageAccount Class
Microsoft.WindowsAzure.Storage Namespace