ScriptComponentDescriptor ScriptComponentDescriptor ScriptComponentDescriptor 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
ScriptComponentDescriptorScriptComponentDescriptorScriptComponentDescriptorScriptComponentDescriptor
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) ScriptComponentDescriptor(String) ScriptComponentDescriptor(String) ScriptComponentDescriptor(String)

Initializes an instance of the ScriptComponentDescriptor class.

Properties

ClientID ClientID ClientID ClientID

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

ID ID ID ID

Gets or sets the ID of the current ScriptComponentDescriptor instance.

Type Type Type Type

Gets or sets the type of the target client component.

Methods

AddComponentProperty(String, String) AddComponentProperty(String, String) AddComponentProperty(String, String) AddComponentProperty(String, String)

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

AddElementProperty(String, String) AddElementProperty(String, String) AddElementProperty(String, String) AddElementProperty(String, String)

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

AddEvent(String, String) AddEvent(String, String) AddEvent(String, String) AddEvent(String, String)

Adds the specified event and handler.

AddProperty(String, Object) AddProperty(String, Object) AddProperty(String, Object) AddProperty(String, Object)

Adds the specified property and value.

AddScriptProperty(String, String) AddScriptProperty(String, String) AddScriptProperty(String, String) AddScriptProperty(String, String)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetScript() GetScript() GetScript() GetScript()

Gets the client script that implements the target control on the page.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to