SectionInformation.Type Propriété

Définition

Obtient ou définit le nom de la classe de la section.

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

Valeur de propriété

Nom de la classe associée à cette section ConfigurationSection.

Exceptions

La valeur sélectionnée est null ou une chaîne vide ("").

La valeur sélectionnée est en conflit avec une valeur déjà définie.

Exemples

L’exemple suivant montre comment obtenir la Type valeur d’un ConfigurationSection objet .

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

Remarques

La Type propriété retourne le nom de la classe de section qui gère cette instance de la ConfigurationSection classe .

S’applique à