ScriptComponentDescriptor Class
Provides a wrapper for converting server components into client script.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
System.Web.UI::ScriptDescriptor
System.Web.UI::ScriptComponentDescriptor
System.Web.UI::ScriptBehaviorDescriptor
System.Web.UI::ScriptControlDescriptor
| Name | Description | |
|---|---|---|
![]() | ScriptComponentDescriptor(String^) | Initializes an instance of the ScriptComponentDescriptor class. |
| Name | Description | |
|---|---|---|
![]() | 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.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(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.(Overrides ScriptDescriptor::GetScript().) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | 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.
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.


