IScriptControl Interface

Definition

定义 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
Derived

Remarks

当由类实现时, 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.

Methods

GetScriptDescriptors()

获取表示 ECMAScript (JavaScript) 客户端组件的脚本描述符的集合。Gets a collection of script descriptors that represent ECMAScript (JavaScript) client components.

GetScriptReferences()

获取用于定义该控件所需的脚本资源的 ScriptReference 对象的集合。Gets a collection of ScriptReference objects that define script resources that the control requires.

Applies to