Parses a connection string and returns a
CloudStorageAccount created from the connection string.
Namespace: Microsoft.WindowsAzure.Storage
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
Visual Basic |
---|
Dim connectionString As String
Dim returnValue As CloudStorageAccount
returnValue = CloudStorageAccount.Parse(connectionString) |
Syntax
Visual Basic |
---|
Public Shared Function Parse ( _
connectionString As String _
) As CloudStorageAccount |
C# |
---|
public static CloudStorageAccount Parse (
string connectionString
) |
C++ |
---|
public:
static CloudStorageAccount^ Parse (
String^ connectionString
) |
J# |
---|
public static CloudStorageAccount Parse (
String connectionString
) |
JScript |
---|
public static function Parse (
connectionString : String
) : CloudStorageAccount |
Parameters
- connectionString
A valid connection string.
Return Value
A
CloudStorageAccount object constructed from the values provided in the connection string.
Exceptions
Exception type | 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. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also