Compartilhar via


PagesSection.PageBaseType Propriedade

Definição

Obtém ou define um valor que especifica uma classe code-behind que as páginas .aspx herdam por padrão.

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 da propriedade

String

Uma cadeia de caracteres que especifica uma classe code-behind que as páginas .aspx herdam por padrão.

Atributos

Exemplos

O exemplo de código a seguir mostra como usar a PageBaseType propriedade.

// 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"

Aplica-se a