C#
C++
F#
VB
Parses a connection string and returns a CloudStorageAccount created from the connection string.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Syntax
Parameters
- connectionString
-
Type:
System.StringSystem::String^System.StringSystem.String
A valid connection string.
Return Value
Type: Microsoft.WindowsAzure.Storage.CloudStorageAccountMicrosoft.WindowsAzure.Storage::CloudStorageAccount^Microsoft.WindowsAzure.Storage.CloudStorageAccountMicrosoft.WindowsAzure.Storage.CloudStorageAccountA CloudStorageAccount object constructed from the values provided in the connection string.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if connectionString is null or empty. |
FormatException | Thrown if connectionString is not a valid connection string. |
ArgumentException | Thrown if connectionString cannot be parsed. |