IScriptControl IScriptControl IScriptControl IScriptControl Interface

定義

定義 ASP.NET 伺服器控制項必須實作的方法,在啟用 AJAX 的應用程式中定義 ECMAScript (JavaScript) 資源。Defines methods that ASP.NET server controls must implement to define ECMAScript (JavaScript) resources in AJAX-enabled applications.

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

備註

由類別執行時, IScriptControl介面的方法會提供腳本程式庫的參考, 這些程式庫會定義代表用戶端類型實例的用戶端元件和腳本描述元。When implemented by a class, the methods of the IScriptControl interface provide references to script libraries that define client components and script descriptors that represent instances of client types. 在將包含腳本控制功能的自訂伺服器控制項中, 執行此介面。Implement this interface in custom server controls that will include script control functionality.

如需詳細資訊, 請參閱將用戶端功能加入至 Web 服務器控制項For more information, see Adding Client Capabilities to a Web Server Control.

方法

GetScriptDescriptors() GetScriptDescriptors() GetScriptDescriptors() GetScriptDescriptors()

取得代表 ECMAScript (JavaScript) 用戶端元件的指令碼描述項集合。Gets a collection of script descriptors that represent ECMAScript (JavaScript) client components.

GetScriptReferences() GetScriptReferences() GetScriptReferences() GetScriptReferences()

取得定義控制項需要之指令碼資源的 ScriptReference 物件集合。Gets a collection of ScriptReference objects that define script resources that the control requires.

適用於