Share via


PagesSection.UserControlBaseType Propiedad

Definición

Obtiene o establece un valor que especifica una clase subyacente que los controles de usuario heredan de manera 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 heredan los controles de usuario de manera predeterminada.

Atributos

Ejemplos

En el ejemplo de código siguiente se muestra cómo utilizar la propiedad 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"

Se aplica a