편집

다음을 통해 공유


PagesSection.UserControlBaseType Property

Definition

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