Edit

Share via


CodeNamespaceCollection Constructors

Definition

Initializes a new instance of the CodeNamespaceCollection class.

Overloads

CodeNamespaceCollection()

Initializes a new instance of the CodeNamespaceCollection class.

CodeNamespaceCollection(CodeNamespace[])

Initializes a new instance of the CodeNamespaceCollection class that contains the specified array of CodeNamespace objects.

CodeNamespaceCollection(CodeNamespaceCollection)

Initializes a new instance of the CodeNamespaceCollection class that contains the elements of the specified source collection.

CodeNamespaceCollection()

Source:
CodeNamespaceCollection.cs
Source:
CodeNamespaceCollection.cs
Source:
CodeNamespaceCollection.cs

Initializes a new instance of the CodeNamespaceCollection class.

public:
 CodeNamespaceCollection();
public CodeNamespaceCollection ();
Public Sub New ()

Examples

The following example demonstrates how to create an empty instance of the CodeNamespaceCollection class.

// Creates an empty CodeNamespaceCollection.            
CodeNamespaceCollection^ collection = gcnew CodeNamespaceCollection;
// Creates an empty CodeNamespaceCollection.
CodeNamespaceCollection collection = new CodeNamespaceCollection();
' Creates an empty CodeNamespaceCollection.            
Dim collection As New CodeNamespaceCollection()

Applies to

CodeNamespaceCollection(CodeNamespace[])

Source:
CodeNamespaceCollection.cs
Source:
CodeNamespaceCollection.cs
Source:
CodeNamespaceCollection.cs

Initializes a new instance of the CodeNamespaceCollection class that contains the specified array of CodeNamespace objects.

public:
 CodeNamespaceCollection(cli::array <System::CodeDom::CodeNamespace ^> ^ value);
public CodeNamespaceCollection (System.CodeDom.CodeNamespace[] value);
new System.CodeDom.CodeNamespaceCollection : System.CodeDom.CodeNamespace[] -> System.CodeDom.CodeNamespaceCollection
Public Sub New (value As CodeNamespace())

Parameters

value
CodeNamespace[]

An array of CodeNamespace objects with which to initialize the collection.

Exceptions

One or more objects in the array are null.

Applies to

CodeNamespaceCollection(CodeNamespaceCollection)

Source:
CodeNamespaceCollection.cs
Source:
CodeNamespaceCollection.cs
Source:
CodeNamespaceCollection.cs

Initializes a new instance of the CodeNamespaceCollection class that contains the elements of the specified source collection.

public:
 CodeNamespaceCollection(System::CodeDom::CodeNamespaceCollection ^ value);
public CodeNamespaceCollection (System.CodeDom.CodeNamespaceCollection value);
new System.CodeDom.CodeNamespaceCollection : System.CodeDom.CodeNamespaceCollection -> System.CodeDom.CodeNamespaceCollection
Public Sub New (value As CodeNamespaceCollection)

Parameters

value
CodeNamespaceCollection

The CodeNamespaceCollection with which to initialize the collection.

Exceptions

value is null.

Applies to