Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








ScriptComponentDescriptor Class

Provides a wrapper for converting server components into client script.



[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ScriptComponentDescriptor : ScriptDescriptor


<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class ScriptComponentDescriptor _
	Inherits ScriptDescriptor


[AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)]
public ref class ScriptComponentDescriptor : public ScriptDescriptor


/** @attribute AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal) */
/** @attribute AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal) */
public class ScriptComponentDescriptor extends ScriptDescriptor


ScriptComponentDescriptorNew(String)Initializes an instance of the ScriptComponentDescriptor class.
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.
ClientIDWhen overridden in a derived class, gets the identifier of the client component.
Equals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize()Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
GetHashCode()Serves as a hash function for a particular type. (Inherited from Object.)
GetScript()Gets the client script that implements the target control on the page. (Overrides ScriptDescriptor.GetScript().)
GetType()Gets the Type of the current instance. (Inherited from Object.)
IDGets or sets the ID of the current ScriptComponentDescriptor instance.
MemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
ToString()Returns a String that represents the current Object. (Inherited from Object.)
TypeGets or sets the type of the target client component.


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.

Inheritance Hierarchy

Assembly: System.Web.Extensions (Module: System.Web.Extensions)