SectionInformation.Name Propriedade

Definição

Recebe o nome da secção de configuração associada.

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

Valor de Propriedade

O nome completo da secção de configuração.

Exemplos

O exemplo seguinte mostra como obter o Name valor de um 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

Observações

É Name o nome da secção sem o caminho.

Aplica-se a