Share via


AdomdDataReader.Enumerator Structure

Implements the System.Collections.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)

Syntax

'Declaration
Public Structure Enumerator _
    Implements IEnumerator
'Usage
Dim instance As AdomdDataReader.Enumerator
public struct Enumerator : IEnumerator
public value class Enumerator : IEnumerator
[<SealedAttribute>]
type Enumerator =  
    struct 
        interface IEnumerator 
    end
JScript suports the use of structures, but not the declaration of new ones.

The AdomdDataReader.Enumerator type exposes the following members.

Properties

  Name Description
Public property Current Gets the current IDataRecord interface in the AdomdDataReader.

Top

Methods

  Name Description
Public method Equals (Inherited from ValueType.)
Public method GetHashCode (Inherited from ValueType.)
Public method GetType (Inherited from Object.)
Public method MoveNext Moves to the next IDataRecord interface in the AdomdDataReader.
Public method Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Public method ToString (Inherited from ValueType.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate property IEnumerator.Current Gets the current IDataRecord object in the AdomdDataReader.

Top

Remarks

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AnalysisServices.AdomdClient Namespace