PagesSection.PageBaseType Proprietà

Definizione

Ottiene o imposta un valore che specifica una classe code-behind ereditata dalle pagine aspx per impostazione predefinita.

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

Valore della proprietà

String

Stringa che specifica una classe code-behind ereditata dalle pagine aspx per impostazione predefinita.

Attributi

Esempio

Nell'esempio di codice riportato di seguito viene illustrato come utilizzare la proprietà PageBaseType.

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

Si applica a