Sdílet prostřednictvím


PagesSection.PageBaseType Vlastnost

Definice

Získá nebo nastaví hodnotu, která určuje kód za třídou, která stránky .aspx dědí ve výchozím nastavení.

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

Hodnota vlastnosti

String

Řetězec, který určuje třídu kódu, kterou stránky .aspx dědí ve výchozím nastavení.

Atributy

Příklady

Následující příklad kódu ukazuje, jak použít PageBaseType vlastnost.

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

Platí pro