SectionInformation.Type Propiedad

Definición

Obtiene o establece el nombre de la clase de sección.

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 propiedad

Nombre de la clase asociada a esta sección ConfigurationSection.

Excepciones

El valor seleccionado es null o una cadena vacía ("").

El valor seleccionado está en conflicto con un valor ya definido.

Ejemplos

En el ejemplo siguiente se muestra cómo obtener el Type valor de un 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

Comentarios

La Type propiedad devuelve el nombre de la clase de sección que controla esta instancia de la ConfigurationSection clase .

Se aplica a