SectionInformation.Type Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour