次の方法で共有


SectionInformation.Type プロパティ

定義

セクション クラス名を取得または設定します。

public:
 property System::String ^ Type { System::String ^ get(); void set(System::String ^ value); };
public string Type { get; set; }
member this.Type : string with get, set
Public Property Type As String

プロパティ値

この ConfigurationSection セクションに関連付けられているクラスの名前。

例外

選択した値が null または空の文字列 ("") です。

選択した値が、既に定義されている値と競合しています。

次の例は、Type オブジェクトのConfigurationSection値を取得する方法を示しています。

static public void GetSectionType()
{
    SectionInformation sInfo =
        GetSectionInformation();

    string sectionType = sInfo.Type;
    Console.WriteLine("Section type: {0}", sectionType);
}
Public Shared Sub GetSectionType() 
    Dim sInfo As SectionInformation = _
    GetSectionInformation()
    
    Dim sectionType As String = sInfo.Type
    Console.WriteLine("Section type: {0}", _
    sectionType)

End Sub

注釈

Type プロパティは、ConfigurationSection クラスのこのインスタンスを処理するセクション クラスの名前を返します。

適用対象