SectionInformation.Type Propriedade

Definição

Recebe ou define o nome da classe da secção.

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

Valor de Propriedade

O nome da classe associada a esta ConfigurationSection secção.

Exceções

O valor selecionado é null ou uma cadeia vazia ("").

O valor selecionado entra em conflito com um valor já definido.

Exemplos

O exemplo seguinte mostra como obter o Type valor de um ConfigurationSection objeto.

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

Observações

A Type propriedade devolve o nome da classe de secção que trata esta instância da ConfigurationSection classe.

Aplica-se a