ScriptComponentDescriptor Class
TOC
Collapse the table of content
Expand the table of content

ScriptComponentDescriptor Class

 

Provides a wrapper for converting server components into client script.

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

System.Object
  System.Web.UI.ScriptDescriptor
    System.Web.UI.ScriptComponentDescriptor
      System.Web.UI.ScriptBehaviorDescriptor
      System.Web.UI.ScriptControlDescriptor

public class ScriptComponentDescriptor : ScriptDescriptor

NameDescription
System_CAPS_pubmethodScriptComponentDescriptor(String)

Initializes an instance of the ScriptComponentDescriptor class.

NameDescription
System_CAPS_pubpropertyClientID

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

System_CAPS_pubpropertyID

Gets or sets the ID of the current ScriptComponentDescriptor instance.

System_CAPS_pubpropertyType

Gets or sets the type of the target client component.

NameDescription
System_CAPS_pubmethodAddComponentProperty(String, String)

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

System_CAPS_pubmethodAddElementProperty(String, String)

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

System_CAPS_pubmethodAddEvent(String, String)

Adds the specified event and handler.

System_CAPS_pubmethodAddProperty(String, Object)

Adds the specified property and value.

System_CAPS_pubmethodAddScriptProperty(String, String)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetScript()

Gets the client script that implements the target control on the page.(Overrides ScriptDescriptor.GetScript().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft