UserControl.DesignerInitialize Metod

Definition

Utför alla initieringssteg på användarkontrollen som krävs av RAD-designers.

public:
 void DesignerInitialize();
public void DesignerInitialize();
member this.DesignerInitialize : unit -> unit
Public Sub DesignerInitialize ()

Exempel

I följande exempel anropas DesignerInitialize metoden under bearbetningen Page_Init av begäran. Detta gör användarkontrollen tillgänglig för en RAD-designer, till exempel Visual Studio 2005.


// Initialize the UserControl object that has been created declaratively. 
myControl.InitializeAsUserControl(this);


' Initialize the UserControl object that has been created declaratively.
myControl.InitializeAsUserControl(Me)

Gäller för

Se även