Compartilhar via


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.

Hierarquia de herança

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

Namespace:  Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO
Assembly:  Microsoft.SqlServer.ForEachSMOEnumerator (em Microsoft.SqlServer.ForEachSMOEnumerator.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. Returns false if there is no object to move to.
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

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.SMO