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)

返回

ReadOnlyCollection<RegisteredScript>

一个包含客户端脚本块的泛型集合。

注解

客户端脚本块注册到控件, ScriptManager 以便与控件内部的控件一 UpdatePanel 起使用。

适用于

另请参阅