Classe EmptyEnumerator

Acts as a placeholder when enumeration is called on an empty collection. The runtime returns the empty enumerator when there are no elements in the collection to enumerate over. This class cannot be inherited.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO.EmptyEnumerator

Spazio dei nomi  Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO
Assembly:  Microsoft.SqlServer.ForEachSMOEnumerator (in Microsoft.SqlServer.ForEachSMOEnumerator.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class EmptyEnumerator _
    Implements IEnumerator
'Utilizzo
Dim instance As EmptyEnumerator
public sealed class EmptyEnumerator : IEnumerator
public ref class EmptyEnumerator sealed : IEnumerator
[<SealedAttribute>]
type EmptyEnumerator =  
    class 
        interface IEnumerator 
    end
public final class EmptyEnumerator implements IEnumerator

Nel tipo EmptyEnumerator sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Current Raises an error indicating an empty enumerator.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico MoveNext Advances the enumerator to the next element of the collection. Returns false if there is no object to move to.
Metodo pubblico Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Metodo pubblico ToString Ereditato da Object.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO