Partager via


Structure AdomdDataReader.Enumerator

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

Espace de noms :  Microsoft.AnalysisServices.AdomdClient
Assembly :  Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)

Syntaxe

'Déclaration
Public Structure Enumerator _
    Implements IEnumerator
'Utilisation
Dim instance As AdomdDataReader.Enumerator
public struct Enumerator : IEnumerator
public value class Enumerator : IEnumerator
[<SealedAttribute>]
type Enumerator =  
    struct 
        interface IEnumerator 
    end
JScript prend en charge l'utilisation de structures, mais pas la déclaration de nouvelles structures.

Le type AdomdDataReader.Enumerator expose les membres suivants.

Propriétés

  Nom Description
Propriété publique Current Gets the current IDataRecord interface in the AdomdDataReader.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de ValueType.)
Méthode publique GetHashCode (hérité de ValueType.)
Méthode publique GetType (hérité de Object.)
Méthode publique MoveNext Moves to the next IDataRecord interface in the AdomdDataReader.
Méthode publique Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Méthode publique ToString (hérité de ValueType.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface explicitePropriété privée IEnumerator.Current Gets the current IDataRecord object in the AdomdDataReader.

Haut de la page

Notes

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.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.AnalysisServices.AdomdClient