ScriptBehaviorDescriptor Class

Definition

扩展 ScriptComponentDescriptor 类以提供包装程序来定义转换为客户端脚本的行为。Extends the ScriptComponentDescriptor class to provide a wrapper for defining behaviors that are converted into client script.

public ref class ScriptBehaviorDescriptor : System::Web::UI::ScriptComponentDescriptor
public class ScriptBehaviorDescriptor : System.Web.UI.ScriptComponentDescriptor
type ScriptBehaviorDescriptor = class
    inherit ScriptComponentDescriptor
Public Class ScriptBehaviorDescriptor
Inherits ScriptComponentDescriptor
Inheritance

Constructors

ScriptBehaviorDescriptor(String, String)

初始化 ScriptBehaviorDescriptor 类的新实例。Initializes a new instance of the ScriptBehaviorDescriptor class.

Properties

ClientID

获取当前 ScriptBehaviorDescriptor 实例的标识符。Gets the identifier for the current ScriptBehaviorDescriptor instance.

ElementID

获取关联元素的 id 特性,它在构造函数中进行设置。Gets the id attribute of the associated element, as set in the constructor.

ID

获取或设置当前 ScriptComponentDescriptor 实例的 ID。Gets or sets the ID of the current ScriptComponentDescriptor instance.

(Inherited from ScriptComponentDescriptor)
Name

获取或设置当前 ScriptBehaviorDescriptor 实例的名称。Gets or sets the name of the current ScriptBehaviorDescriptor instance.

Type

获取或设置目标客户端组件的类型。Gets or sets the type of the target client component.

(Inherited from ScriptComponentDescriptor)

Methods

AddComponentProperty(String, String)

添加指定的属性,并将该属性与指定的元素相关联。Adds the specified property, and associates that property with the specified element.

(Inherited from ScriptComponentDescriptor)
AddElementProperty(String, String)

添加指定的属性,并将该属性与指定的组件相关联。Adds the specified property and associates that property with the specified component.

(Inherited from ScriptComponentDescriptor)
AddEvent(String, String)

添加指定的事件和处理程序。Adds the specified event and handler.

(Inherited from ScriptComponentDescriptor)
AddProperty(String, Object)

添加指定的属性和值。Adds the specified property and value.

(Inherited from ScriptComponentDescriptor)
AddScriptProperty(String, String)

添加指定的属性,并将该属性与指定的脚本相关联。Adds the specified property, and associates the property with the specified script.

(Inherited from ScriptComponentDescriptor)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetScript()

获取在页上实现目标控件的客户端脚本。Gets the client script that implements the target control on the page.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Applies to