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
實作

備註

在類別的實例XmlSchema XmlSchemaEnumerator XmlSchemas所包含的物件集合上, 使用來執行-每個反覆運算。Use 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()

傳回代表目前物件的字串。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.

適用於