Share via


ProviderSettings.Type 属性

定义

获取或设置由此类配置的提供程序的类型。

public:
 property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("type", IsRequired=true)]
public string Type { get; set; }
public string Type { get; set; }
[<System.Configuration.ConfigurationProperty("type", IsRequired=true)>]
member this.Type : string with get, set
member this.Type : string with get, set
Public Property Type As String

属性值

由此 ProviderSettings 实例配置的提供程序类型的完全限定命名空间和类名。

属性

示例

下面的代码示例演示如何访问 Type 属性。

Console.WriteLine(
    "Provider settings type: {0}",
       pSettings.Type);
Console.WriteLine( _
"Provider settings type: {0}", _
pSettings.Type)

注解

属性 Type 包含由 ProviderSettings 类配置的提供程序的完全限定命名空间和类名。

适用于