ScriptManager.GetRegisteredClientScriptBlocks 方法

定義

擷取用戶端指令碼區塊的唯讀集合,該區塊先前是向 ScriptManager 控制項註冊。

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

傳回

包含用戶端指令碼區塊的泛型集合。

備註

用戶端腳本區塊會向 控制項註冊, ScriptManager 以便與 控制項內的 UpdatePanel 控制項搭配使用。

適用於

另請參閱