This documentation is archived and is not being maintained.

CodeExpressionCollection Constructor

.NET Framework 1.1

Initializes a new instance of the CodeExpressionCollection class.

Overload List

Initializes a new instance of the CodeExpressionCollection class.

[Visual Basic] Public Sub New()
[C#] public CodeExpressionCollection();
[C++] public: CodeExpressionCollection();
[JScript] public function CodeExpressionCollection();

Initializes a new instance of the CodeExpressionCollection class containing the specified array of CodeExpression objects.

[Visual Basic] Public Sub New(CodeExpression())
[C#] public CodeExpressionCollection(CodeExpression[]);
[C++] public: CodeExpressionCollection(CodeExpression*[]);
[JScript] public function CodeExpressionCollection(CodeExpression[]);

Initializes a new instance of the CodeExpressionCollection class containing the elements of the specified source collection.

[Visual Basic] Public Sub New(CodeExpressionCollection)
[C#] public CodeExpressionCollection(CodeExpressionCollection);
[C++] public: CodeExpressionCollection(CodeExpressionCollection*);
[JScript] public function CodeExpressionCollection(CodeExpressionCollection);

Example

[Visual Basic, C#, C++] Note   This example shows how to use one of the overloaded versions of the CodeExpressionCollection constructor. For other examples that might be available, see the individual overload topics.
[Visual Basic] 
' Creates an empty CodeExpressionCollection.
Dim collection As New CodeExpressionCollection()

[C#] 
// Creates an empty CodeExpressionCollection.
CodeExpressionCollection collection = new CodeExpressionCollection();

[C++] 
// Creates an empty CodeExpressionCollection.
CodeExpressionCollection* collection = new CodeExpressionCollection();

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

CodeExpressionCollection Class | CodeExpressionCollection Members | System.CodeDom Namespace

Show: