Export (0) Print
Expand All

AdomdDataReader.Enumerator Structure

Implements the IEnumerator interface to support iterating over an AdomdDataReader and reading its individual records.

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

public struct Enumerator : IEnumerator

The AdomdDataReader.Enumerator type exposes the following members.

Public propertyCurrentGets the current IDataRecord interface in the AdomdDataReader.

Public methodEquals (Inherited from ValueType.)
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetType (Inherited from Object.)
Public methodMoveNextMoves to the next IDataRecord interface in the AdomdDataReader.
Public methodResetSets the enumerator to its initial position, which is before the first element in the collection.
Public methodToString (Inherited from ValueType.)

Explicit interface implemetationPrivate propertyIEnumerator.CurrentGets the current IDataRecord object in the AdomdDataReader.

In Microsoft JScript, you can use the structures in the Microsoft .NET Framework, but you cannot define your own.

Because the AdomdDataReader is a forward-only source of data, you can iterate the associated enumerator only once.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft