PagesSection.PageBaseType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that specifies a code-behind class that .aspx pages inherit by default.
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
Property Value
A string that specifies a code-behind class that .aspx pages inherit by default.
- Attributes
Examples
The following code example shows how to use the PageBaseType property.
// 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"
Applies to
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.