PagesSection.UserControlBaseType プロパティ

定義

既定でユーザー コントロールが継承する分離コード クラスを指定する値を取得または設定します。

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

プロパティ値

既定でユーザー コントロールが継承する分離コード ファイルを指定する文字列。

属性

次のコード例は、UserControlBaseType プロパティの使用方法を示しています。

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

適用対象