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.
繼承階層
System.Object
Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO.EmptyEnumerator
命名空間: Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO
組件: Microsoft.SqlServer.ForEachSMOEnumerator (在 Microsoft.SqlServer.ForEachSMOEnumerator.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 indicating an empty enumerator. |
上層
方法
名稱 | 說明 | |
---|---|---|
Equals | (繼承自 Object。) | |
GetHashCode | (繼承自 Object。) | |
GetType | (繼承自 Object。) | |
MoveNext | Advances the enumerator to the next element of the collection. Returns false if there is no object to move to. | |
Reset | Sets the enumerator to its initial position, which is before the first element in the collection. | |
ToString | (繼承自 Object。) |
上層
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。