Compartir a través de


PagesSection.UserControlBaseType Propiedad

Definición

Obtiene o establece un valor que especifica una clase de código subyacente que los controles de usuario heredan de forma predeterminada.

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

Valor de propiedad

Cadena que especifica un archivo de código subyacente que el usuario controla hereda de forma predeterminada.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo usar la UserControlBaseType propiedad .

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

Se aplica a