ScriptManager.GetRegisteredDisposeScripts 方法

定义

检索先前已向 Page 对象注册的 dispose 脚本的只读集合。Retrieves a read-only collection of dispose scripts that were previously registered with the Page object.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Web::UI::RegisteredDisposeScript ^> ^ GetRegisteredDisposeScripts();
public System.Collections.ObjectModel.ReadOnlyCollection<System.Web.UI.RegisteredDisposeScript> GetRegisteredDisposeScripts ();
member this.GetRegisteredDisposeScripts : unit -> System.Collections.ObjectModel.ReadOnlyCollection<System.Web.UI.RegisteredDisposeScript>
Public Function GetRegisteredDisposeScripts () As ReadOnlyCollection(Of RegisteredDisposeScript)

返回

ReadOnlyCollection<RegisteredDisposeScript>

一个包含 dispose 脚本的泛型集合。A generic collection that contains dispose scripts.

注解

disposeUpdatePanel 更新或删除该控件时,将执行脚本。A dispose script executes when the UpdatePanel control is updated or deleted.

适用于

另请参阅