Compartir por


SectionInformation.SectionName Propiedad

Definición

Obtiene el nombre de la sección de configuración asociada.

public:
 property System::String ^ SectionName { System::String ^ get(); };
public string SectionName { get; }
member this.SectionName : string
Public ReadOnly Property SectionName As String

Valor de propiedad

Nombre del objeto asociado ConfigurationSection .

Ejemplos

En el ejemplo siguiente se muestra cómo obtener el SectionName valor de un ConfigurationSection objeto .

static public void GetSectionName()
{
    SectionInformation sInfo =
        GetSectionInformation();

    string sectionName = sInfo.SectionName;
    Console.WriteLine("Section type: {0}", sectionName);
}
Public Shared Sub GetSectionName() 
    Dim sInfo As SectionInformation = _
    GetSectionInformation()
    
    Dim sectionName As String = _
    sInfo.SectionName
    Console.WriteLine("Section type: {0}", _
    sectionName)
End Sub

Comentarios

El SectionName valor de la propiedad es el nombre de sección completo, que incluye la jerarquía de herencia de configuración.

Se aplica a