System.CodeDom.CodeNamespaceImportCollection Class

Assembly: System.dll
Namespace: System.CodeDom
Summary
Represents a collection of CodeNamespaceImport objects.
C# Syntax:
[Serializable]
public class CodeNamespaceImportCollection : IList, ICollection, IEnumerable
See also:
System.CodeDom Namespace | CodeNamespaceImport

System.CodeDom.CodeNamespaceImportCollection Member List:

Public Constructors
ctor #1 Default constructor. This constructor is called by derived class constructors to initialize state in this type.
Public Properties
Count Read-only

Gets the number of namespaces in the collection.
Item Read-write

Gets or sets the CodeNamespaceImport at the specified index in the collection.
Public Methods
Add Adds a CodeNamespaceImport to the collection.
AddRange Adds a set of CodeNamespaceImport objects to the collection.
Clear Clears the collection of members.
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetEnumerator Gets an enumerator that enumerates the collection members.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.CodeDom.CodeNamespaceImportCollection Member Details

ctor #1
Summary:
Default constructor. This constructor is called by derived class constructors to initialize state in this type.
C# Syntax:
public CodeNamespaceImportCollection();

Return to top


Property: Count (read-only)
Summary
Gets the number of namespaces in the collection.
C# Syntax:
public int Count {get;}

Return to top


Property: Item (read-write)
Summary
Gets or sets the CodeNamespaceImport at the specified index in the collection.
C# Syntax:
public CodeNamespaceImport this[int index] {get; set;}
Parameters:

index

The index of the collection to access.

Exceptions
Exception Type Condition
ArgumentOutOfRangeException The index parameter is outside the valid range of indices for the collection.

Return to top


Method: Add(
   CodeNamespaceImport value
)
Summary
Adds a CodeNamespaceImport to the collection.
C# Syntax:
public void Add(
   CodeNamespaceImport value
);
Parameters:

value

The CodeNamespaceImport to add to the collection.

See also:
CodeNamespaceImport

Return to top


Method: AddRange(
   CodeNamespaceImport[] value
)
Summary
Adds a set of CodeNamespaceImport objects to the collection.
C# Syntax:
public void AddRange(
   CodeNamespaceImport[] value
);
Parameters:

value

An array of type CodeNamespaceImport objects to add to the collection.

See also:
CodeNamespaceImport

Return to top


Method: Clear()
Summary
Clears the collection of members.
C# Syntax:
public void Clear();

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~CodeNamespaceImportCollection();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetEnumerator()
Summary
Gets an enumerator that enumerates the collection members.
C# Syntax:
public IEnumerator GetEnumerator();
Return Value:
An IEnumerator that indicates the collection members.
See also:
IEnumerator

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.