UpdateProgress UpdateProgress UpdateProgress Constructor

定義

初始化 UpdateProgress 類別的新執行個體。Initializes a new instance of the UpdateProgress class.

public:
 UpdateProgress();
public UpdateProgress ();
Public Sub New ()

備註

當您動態建立UpdateProgress控制項時,您會建立繼承ITemplate自控制項的自訂範本。When you create an UpdateProgress control dynamically, you create a custom template that inherits from the ITemplate control. 您在InstantiateIn方法中指定標記,然後ProgressTemplate將動態建立UpdateProgress之控制項的屬性設定為自訂範本的新實例。You specify markup in the InstantiateIn method, and then set the ProgressTemplate property of the dynamically created UpdateProgress control to a new instance of the custom template. 當您動態UpdateProgress建立控制項時,必須在頁面PreRender事件期間或之前執行此動作。When you create UpdateProgress controls dynamically, you must do so during or before the PreRender event of the page. 如果您稍後在UpdateProgress頁面生命週期中建立控制項,則不會顯示進度。If you create the UpdateProgress control later in the page life cycle, progress is not displayed.

適用於