PagesSection.UserControlBaseType 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 user controls inherit by default.
public:
property System::String ^ UserControlBaseType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("userControlBaseType", DefaultValue="System.Web.UI.UserControl")]
public string UserControlBaseType { get; set; }
[<System.Configuration.ConfigurationProperty("userControlBaseType", DefaultValue="System.Web.UI.UserControl")>]
member this.UserControlBaseType : string with get, set
Public Property UserControlBaseType As String
Property Value
A string that specifies a code-behind file that user controls inherit by default.
- Attributes
Examples
The following code example shows how to use the UserControlBaseType property.
// Get the current UserControlBaseType property value.
Console.WriteLine(
"Current UserControlBaseType value: '{0}'",
pagesSection.UserControlBaseType);
// Set the UserControlBaseType property to
// "MyNameSpace.MyCustomControlBaseType".
pagesSection.UserControlBaseType =
"MyNameSpace.MyCustomControlBaseType";
' Get the current UserControlBaseType property value.
Console.WriteLine( _
"Current UserControlBaseType value: '{0}'", _
pagesSection.UserControlBaseType)
' Set the UserControlBaseType property to
' "MyNameSpace.MyCustomControlBaseType".
pagesSection.UserControlBaseType = _
"MyNameSpace.MyCustomControlBaseType"
Applies to
Работете съвместно с нас в GitHub
Източникът за това съдържание може да бъде намерен в GitHub, където можете също да създавате и преглеждате проблеми и да изтегляте искания. За повече информация вижте нашето ръководство за сътрудник.