Implements the method declared in the IEnumerable<T> interface.

Namespace: Autodesk.Civil.DatabaseServices
Assembly: AeccDbMgd (in AeccDbMgd.dll) Version: 10.3.488.0

Syntax

C#
public IEnumerator<ObjectId> GetEnumerator()
Visual Basic
Public Function GetEnumerator As IEnumerator(Of ObjectId)
Visual C++
public:
virtual IEnumerator<ObjectId>^ GetEnumerator() sealed

Return Value

An enumerator which implements IEnumerator<T> interface.

Implements

IEnumerable<(Of <(<'T>)>)>..::..GetEnumerator()()()()

Remarks

This method return an enumerator which can be use to enumerate this collection.

Examples

CopyC#
1private void WriteAllCorridors()
2{
3    foreach (ObjectId corridorId in _civildoc.CorridorCollection)
4    {
5        Corridor corridor = corridorId.GetObject(OpenMode.ForRead) as Corridor;
6        WriteCorridor(corridor);
7    }
8}

See Also