EmptyEnumerator 類別

Provides an empty enumerator that is returned by the Integration Services runtime when there are no elements in the collection to enumerate over.

繼承階層

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

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public NotInheritable Class EmptyEnumerator _
    Implements IEnumerator
'用途
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

EmptyEnumerator 型別公開下列成員。

建構函式

  名稱 說明
公用方法 EmptyEnumerator Initializes a new instance of the EmptyEnumerator class.

上層

屬性

  名稱 說明
公用屬性 Current Raises an error that indicates an empty enumerator.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 MoveNext Advances the enumerator to the next element of the collection. The EmptyEnumerator returns false for this method, because there is no object to move to in the empty collection.
公用方法 Reset Sets the enumerator to its initial position, which is before the first element in the collection.
公用方法 ToString (繼承自 Object。)

上層

備註

An EmptyEnumerator returns false on the first call to MoveNext, which tells you that the enumerator is at the end of its collection.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dts.Runtime 命名空間