ReadOnlyMetadataCollection<T>.Enumerator 结构

定义

支持对 ReadOnlyMetadataCollection<T> 集合执行简单迭代。Supports a simple iteration over the ReadOnlyMetadataCollection<T> collection.

public:  where T : MetadataItemvalue class ReadOnlyMetadataCollection<T>::Enumerator : System::Collections::Generic::IEnumerator<T>
public struct ReadOnlyMetadataCollection<T>.Enumerator : System.Collections.Generic.IEnumerator<T> where T : MetadataItem
type ReadOnlyMetadataCollection<'T (requires 'T :> MetadataItem)>.Enumerator = struct
    interface IEnumerator<'T (requires 'T :> MetadataItem)>
    interface IDisposable
    interface IEnumerator
Public Structure ReadOnlyMetadataCollection(Of T).Enumerator
Implements IEnumerator(Of T)

类型参数

T
继承
ReadOnlyMetadataCollection<T>.Enumerator
实现

属性

Current

获取位于当前位置的成员。Gets the member at the current position.

方法

Dispose()

释放此枚举数。Disposes of this enumerator.

MoveNext()

ReadOnlyMetadataCollection<T>.Enumerator 类型的集合中移至下一个成员。Moves to the next member in the collection of type ReadOnlyMetadataCollection<T>.Enumerator.

Reset()

将枚举数定位在 ReadOnlyMetadataCollection<T> 类型的集合中的第一个位置之前。Positions the enumerator before the first position in the collection of type ReadOnlyMetadataCollection<T>.

显式界面实现

IEnumerator.Current

获取位于当前位置的成员。Gets the member at the current position.

适用于