SectionInformation.Type Propriedade
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.