EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,
0 av 8 bedömde detta vara till hjälp - Bedöm det här ämnet

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)
'Användning
Dim settingName As String
Dim returnValue As CloudStorageAccount

returnValue = CloudStorageAccount.FromConfigurationSetting(settingName)
public static CloudStorageAccount FromConfigurationSetting (
	string settingName
)
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.CloudStorageAccount

A CloudStorageAccount constructed from the values in the configuration string.
Exception typeCondition
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 2008

Target Platforms

Var detta till hjälp?
(1500 tecken kvar)
© 2013 Microsoft. Med ensamrätt.
facebook page visit twitter rss feed newsletter