Acts as a placeholder when enumeration is called on an empty collection. This class cannot be inherited.
繼承階層
System.Object
Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO.EmptyEnumerator
命名空間: Microsoft.SqlServer.Dts.Runtime.Enumerators.ADO
組件: Microsoft.SqlServer.ForEachADOEnumerator (在 Microsoft.SqlServer.ForEachADOEnumerator.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. The EmptyEnumerator always returns false for this method. |
![]() |
Reset | Sets the enumerator to its initial position, which is before the first element in the collection. |
![]() |
ToString | (繼承自 Object。) |
上層
備註
The empty enumerator is returned by the runtime when there are no elements in the collection to enumerate over.
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
.gif)
.gif)