XmlSchemaEnumerator 类

定义

启用 XmlSchema 对象的集合上的迭代。Enables iteration over a collection of XmlSchema objects.

public ref class XmlSchemaEnumerator : System::Collections::Generic::IEnumerator<System::Xml::Schema::XmlSchema ^>
public class XmlSchemaEnumerator : System.Collections.Generic.IEnumerator<System.Xml.Schema.XmlSchema>
type XmlSchemaEnumerator = class
    interface IEnumerator<XmlSchema>
    interface IEnumerator
    interface IDisposable
Public Class XmlSchemaEnumerator
Implements IEnumerator(Of XmlSchema)
继承
XmlSchemaEnumerator
实现

注解

使用可对XmlSchemas类的实例所包含的XmlSchema对象集合执行每个迭代。 XmlSchemaEnumeratorUse the XmlSchemaEnumerator to perform for-each iterations over a collection of XmlSchema objects contained by an instance of the XmlSchemas class.

构造函数

XmlSchemaEnumerator(XmlSchemas)

初始化 XmlSchemaEnumerator 类的新实例。Initializes a new instance of the XmlSchemaEnumerator class.

属性

Current

获取集合中的当前元素。Gets the current element in the collection.

方法

Dispose()

释放由 XmlSchemaEnumerator 使用的所有资源。Releases all resources used by the XmlSchemaEnumerator.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MoveNext()

使枚举数前进到集合中的下一项。Advances the enumerator to the next item in the collection.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式界面实现

IEnumerator.Current

获取 XmlSchema 对象集合中的当前元素。Gets the current element in the collection of XmlSchema objects.

IEnumerator.Reset()

将枚举器设置为其初始位置,该位置位于 XmlSchema 对象集合中第一个元素之前。Sets the enumerator to its initial position, which is before the first element in the collection of XmlSchema objects.

适用于