SectionInformation.Name Propiedad

Definición

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

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

Valor de propiedad

Nombre completo de la sección de configuración.

Ejemplos

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

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

    string sectionNameProperty = sInfo.Name;
    Console.WriteLine("Section name: {0}", 
        sectionNameProperty);
}
Public Shared Sub GetSectionNameProperty() 

    Dim sInfo As SectionInformation = _
    GetSectionInformation()
    
    Dim sectionNameProperty _
    As String = sInfo.Name
    Console.WriteLine("Section name: {0}", _
    sectionNameProperty)

End Sub

Comentarios

Name es el nombre de la sección sin la ruta de acceso.

Se aplica a