Indicates whether a connection string can be parsed to return a
CloudStorageAccount object.
Namespace: Microsoft.WindowsAzure.Storage
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
Visual Basic |
---|
Dim connectionString As String
Dim account As CloudStorageAccount
Dim returnValue As Boolean
returnValue = CloudStorageAccount.TryParse(connectionString, account) |
Syntax
Visual Basic |
---|
Public Shared Function TryParse ( _
connectionString As String, _
<OutAttribute> ByRef account As CloudStorageAccount _
) As Boolean |
C# |
---|
public static bool TryParse (
string connectionString,
out CloudStorageAccount account
) |
C++ |
---|
public:
static bool TryParse (
String^ connectionString,
[OutAttribute] CloudStorageAccount^% account
) |
J# |
---|
public static boolean TryParse (
String connectionString,
/** @attribute OutAttribute() */ /** @ref */ CloudStorageAccount account
) |
Parameters
- connectionString
The connection string to parse.
- account
A CloudStorageAccount object to hold the instance returned if the connection string can be parsed.
Return Value
true if the connection string was successfully parsed; otherwise,
false.
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