System.Design 2.0.0.0 System.Collections.ReadOnlyCollectionBase

Each object in the class represents a script block that is contained in a document (a Web Form, Web server control, a content page, or a master page) at design time.

Use the class to set or examine client script elements that are contained in a Web Forms document on the design surface. Retrieve the collection of client script elements that are contained within the Web document by using the method. Add a client script element to the Web document by using the method.

To add client script elements at run time, use the class.

The class represents script elements at design time that execute on the client. Because the script elements that are generated for objects are not run on the server, the elements do not contain the runat="server" attribute.

Represents a read-only collection of client script blocks that are contained within a Web Form or user control at design time. This class cannot be inherited.

- Constructor
  2.0.0.0

  If is null (Nothing in Visual Basic) or does not contain any elements, the constructor initializes an empty object. Otherwise, the items in the array are used to set the items for the .

  The constructor is typically used in classes that are derived from the class. Visual designers implement the method to return a object for the client script elements in a Web document at design time.

  Initializes a new instance of the class.

  An array of elements used to initialize the collection.