IScriptControl 介面

定義

定義 ASP.NET 伺服器控制項必須實作的方法,在啟用 AJAX 的應用程式中定義 ECMAScript (JavaScript) 資源。

public interface class IScriptControl
public interface IScriptControl
type IScriptControl = interface
Public Interface IScriptControl
衍生

備註

由類別執行時,介面的方法 IScriptControl 會提供腳本程式庫的參考,這些程式庫會定義代表用戶端類型實例的用戶端元件和腳本描述項。 在將包含腳本控制項功能的自訂伺服器控制項中,執行這個介面。

如需詳細資訊,請參閱 將用戶端功能加入至 Web 服務器控制項

方法

GetScriptDescriptors()

取得代表 ECMAScript (JavaScript) 用戶端元件的指令碼描述項集合。

GetScriptReferences()

取得定義控制項需要之指令碼資源的 ScriptReference 物件集合。

適用於