ScriptManager.GetRegisteredStartupScripts 方法

定義

擷取先前註冊於物件 Page 的唯讀啟動腳本集合。

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

傳回

一個包含啟動腳本的通用集合。

範例

RegisterStartupScript

RegisterStartupScript

GetRegisteredStartupScripts

備註

啟動腳本是與控制項相關聯的用戶端腳本,當控制項啟動時執行。

適用於