Compartilhar via


Classe EmptyEnumerator

Acts as a placeholder when enumeration is called on an empty collection. This class cannot be inherited.

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO
Assembly:  Microsoft.SqlServer.ForEachADOEnumerator (em Microsoft.SqlServer.ForEachADOEnumerator.dll)

Sintaxe

'Declaração
Public NotInheritable Class EmptyEnumerator _
    Implements IEnumerator
'Uso
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

O tipo EmptyEnumerator expõe os membros a seguir.

Construtores

  Nome Descrição
Método público EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.

Início

Propriedades

  Nome Descrição
Propriedade pública Current Raises an error indicating an empty enumerator.

Início

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método público MoveNext Advances the enumerator to the next element of the collection. The EmptyEnumerator always returns false for this method.
Método público Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Método público ToString (Herdado de Object.)

Início

Comentários

The empty enumerator is returned by the runtime when there are no elements in the collection to enumerate over.

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência

Namespace Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO