Compartir vía


PagesSection.PageBaseType Propiedad

Definición

Obtiene o establece un valor que especifica una clase de código subyacente que .aspx páginas heredan de forma predeterminada.

public:
 property System::String ^ PageBaseType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("pageBaseType", DefaultValue="System.Web.UI.Page")]
public string PageBaseType { get; set; }
[<System.Configuration.ConfigurationProperty("pageBaseType", DefaultValue="System.Web.UI.Page")>]
member this.PageBaseType : string with get, set
Public Property PageBaseType As String

Valor de propiedad

Cadena que especifica una clase de código subyacente que .aspx páginas heredan de forma predeterminada.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar la PageBaseType propiedad .

// Get the current PageBaseType property value.
Console.WriteLine(
    "Current PageBaseType value: '{0}'",
    pagesSection.PageBaseType);

// Set the PageBaseType property to
// "MyNameSpace.MyCustomPagelBaseType".
pagesSection.PageBaseType =
    "MyNameSpace.MyCustomPagelBaseType";
' Get the current PageBaseType property value.
Console.WriteLine( _
    "Current PageBaseType value: '{0}'", pagesSection.PageBaseType)

' Set the PageBaseType property to
' "MyNameSpace.MyCustomPagelBaseType".
pagesSection.PageBaseType = "MyNameSpace.MyCustomPagelBaseType"

Se aplica a