編集

次の方法で共有


ScriptComponentDescriptor Class

Definition

Provides a wrapper for converting server components into client script.

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

Remarks

This class uses an internal dictionary to hold references to components, elements, properties, and events. To populate this dictionary, use the AddComponentProperty, AddElementProperty, AddProperty, and AddEvent methods. When you are finished, call the GetScript method to generate the client script.

Constructors

ScriptComponentDescriptor(String)

Initializes an instance of the ScriptComponentDescriptor class.

Properties

ClientID

When overridden in a derived class, gets the identifier of the client component.

ID

Gets or sets the ID of the current ScriptComponentDescriptor instance.

Type

Gets or sets the type of the target client component.

Methods

AddComponentProperty(String, String)

Adds the specified property, and associates that property with the specified element.

AddElementProperty(String, String)

Adds the specified property and associates that property with the specified component.

AddEvent(String, String)

Adds the specified event and handler.

AddProperty(String, Object)

Adds the specified property and value.

AddScriptProperty(String, String)

Adds the specified property, and associates the property with the specified script.

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()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

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