ScriptBehaviorDescriptor 类

定义

扩展 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
继承

构造函数

ScriptBehaviorDescriptor(String, String)

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

属性

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.

(继承自 ScriptComponentDescriptor)
Name

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

Type

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

(继承自 ScriptComponentDescriptor)

方法

AddComponentProperty(String, String)

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

(继承自 ScriptComponentDescriptor)
AddElementProperty(String, String)

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

(继承自 ScriptComponentDescriptor)
AddEvent(String, String)

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

(继承自 ScriptComponentDescriptor)
AddProperty(String, Object)

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

(继承自 ScriptComponentDescriptor)
AddScriptProperty(String, String)

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

(继承自 ScriptComponentDescriptor)
Equals(Object)

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

(继承自 Object)
GetHashCode()

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

(继承自 Object)
GetScript()

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

GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
ToString()

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

(继承自 Object)

适用于