Aracılığıyla paylaş


SectionInformation.Type Özellik

Tanım

Bölüm sınıfı adını alır veya ayarlar.

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

Özellik Değeri

Bu ConfigurationSection bölümle ilişkili sınıfın adı.

Özel durumlar

Seçilen değer null veya boş bir dize ("").

Seçili değer, önceden tanımlanmış bir değerle çakişer.

Örnekler

Aşağıdaki örnekte, bir ConfigurationSection nesnenin Type değerinin nasıl alınacakları gösterilmektedir.

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

Açıklamalar

özelliği, Type sınıfın bu örneğini ConfigurationSection işleyen bölüm sınıfının adını döndürür.

Şunlara uygulanır