ConfigurationHelper.LookupConnectionInfo 方法

Checks the connection information.

命名空间: Microsoft.WindowsAzure.Common.Internals
程序集: Microsoft.WindowsAzure.Common(在 Microsoft.WindowsAzure.Common.dll 中)

使用

用法
Dim configurationSources As IEnumerable(Of Func(Of String, String))
Dim type As Type
Dim name As String
Dim settingsName As String
Dim settingsValue As String
Dim returnValue As IDictionary(Of String, Object)

returnValue = ConfigurationHelper.LookupConnectionInfo(configurationSources, type, name, settingsName, settingsValue)

语法

声明
Public Shared Function LookupConnectionInfo ( _
    configurationSources As IEnumerable(Of Func(Of String, String)), _
    type As Type, _
    name As String, _
    <OutAttribute> ByRef settingsName As String, _
    <OutAttribute> ByRef settingsValue As String _
) As IDictionary(Of String, Object)
public static IDictionary<string,Object> LookupConnectionInfo (
    IEnumerable<Func<string,string>> configurationSources,
    Type type,
    string name,
    out string settingsName,
    out string settingsValue
)
public:
static IDictionary<String^, Object^>^ LookupConnectionInfo (
    IEnumerable<Func<String^, String^>^>^ configurationSources, 
    Type^ type, 
    String^ name, 
    [OutAttribute] String^% settingsName, 
    [OutAttribute] String^% settingsValue
)
public static IDictionary<String,Object> LookupConnectionInfo (
    IEnumerable<Func<String,String>> configurationSources, 
    Type type, 
    String name, 
    /** @attribute OutAttribute() */ /** @ref */ String settingsName, 
    /** @attribute OutAttribute() */ /** @ref */ String settingsValue
)

参数

  • configurationSources
    The configuration sources.
  • type
    The connection type.
  • name
    The connection name.
  • settingsName
    The settings name.
  • settingsValue
    The settings value.

返回值

The connection information.

线程安全

此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

ConfigurationHelper 类
ConfigurationHelper 成员
Microsoft.WindowsAzure.Common.Internals 命名空间