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 또는 빈 문자열("")인 경우

선택한 값이 이미 정의된 값과 충돌하는 경우

예제

다음 예제에서는 개체의 TypeConfigurationSection 값을 가져오는 방법을 보여줍니다.

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 클래스의 이 instance 처리하는 섹션 클래스의 ConfigurationSection 이름을 반환합니다.

적용 대상