CloudStorageAccount.FromConfigurationSetting Method
Create a new instance of a CloudStorageAccount object from a specified configuration setting. This method may be called only after the SetConfigurationSettingPublisher method has been called to configure the global configuration setting publisher.
Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
public static CloudStorageAccount FromConfigurationSetting ( String settingName )
public static function FromConfigurationSetting ( settingName : String ) : CloudStorageAccount
Parameters
- settingName
Type: System.String
The name of the configuration setting.
Return Value
Type: Microsoft.WindowsAzure.CloudStorageAccountA CloudStorageAccount constructed from the values in the configuration string.| Exception type | Condition |
|---|---|
| InvalidOperationException | Thrown if the global configuration setting publisher has not been configured, or if the configuration setting cannot be found. |
For more information about using connection strings, see Configuring Connection Strings.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Development Platforms
Windows Vista, Windows 7 and Windows Server 2008Target Platforms