Compartir vía


SystemWebSectionGroup.Trust Propiedad

Definición

Obtiene la sección trust.

public:
 property System::Web::Configuration::TrustSection ^ Trust { System::Web::Configuration::TrustSection ^ get(); };
[System.Configuration.ConfigurationProperty("trust")]
public System.Web.Configuration.TrustSection Trust { get; }
[<System.Configuration.ConfigurationProperty("trust")>]
member this.Trust : System.Web.Configuration.TrustSection
Public ReadOnly Property Trust As TrustSection

Valor de propiedad

TrustSection

Objeto TrustSection.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo obtener el TrustSection objeto del archivo de configuración de una aplicación web existente.

// Get the trust section.
TrustSection trust =
    systemWeb.Trust;
// Read section information.
info =
    trust.SectionInformation;
name = info.SectionName;
type = info.Type;
declared = info.IsDeclared.ToString();
msg = String.Format(
    "Name:     {0}\nDeclared: {1}\nType:     {2}\n",
    name, declared, type);
' Get the trust section.
Dim trust As TrustSection = _
systemWeb.Trust
' Read section information.
info = trust.SectionInformation
name = info.SectionName
type = info.Type
declared = info.IsDeclared.ToString()
msg = String.Format("Name:     {0}" + _
ControlChars.Lf + "Declared: {1}" + _
ControlChars.Lf + "Type:     {2}" + _
ControlChars.Lf, name, declared, type)

Comentarios

El objeto TrustSection hace referencia a la sección trust del archivo de configuración.

Se aplica a

Consulte también