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 возвращает имя класса section, обрабатывающего этот экземпляр ConfigurationSection класса .

Применяется к