EmptyEnumerator 类
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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。