UserControl.DesignerInitialize 方法

定义

对用户控件执行 RAD 调试器所需的任何初始化步骤。

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

示例

以下示例在Page_Init请求处理阶段调用 DesignerInitialize 方法。 这使用户控件可用于 RAD 设计器,例如 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)

适用于

另请参阅