VectorEnumerator<TValue> 類別
定義
支援在任何實作 IVector<TValue> 介面的 STL/CLR 物件上進行簡單的反覆運算。Supports simple iteration over any STL/CLR object that implements the IVector<TValue> interface.
generic <typename TValue>
public ref class VectorEnumerator : Microsoft::VisualC::StlClr::VectorEnumeratorBase<TValue>, System::Collections::Generic::IEnumerator<TValue>
public class VectorEnumerator<TValue> : Microsoft.VisualC.StlClr.VectorEnumeratorBase<TValue>, System.Collections.Generic.IEnumerator<TValue>
type VectorEnumerator<'Value> = class
inherit VectorEnumeratorBase<'Value>
interface IEnumerator<'Value>
Public Class VectorEnumerator(Of TValue)
Inherits VectorEnumeratorBase(Of TValue)
Implements IEnumerator(Of TValue)
類型參數
- TValue
受控制序列中項目的類型。The type of an element in the controlled sequence.
- 繼承
- 實作
備註
某些方法 (特別是運算子) 會宣告參數的類型,但不會指定參數名稱。Some methods, especially operators, declare a type for a parameter but do not specify a parameter name. 這種參數稱為「未命名參數」 (Unnamed Parameter)。Such a parameter is known as an unnamed parameter. 在這些方法的文件中, __unnamed0 預留位置代表未命名的參數。In the documentation for these methods, the __unnamed0 placeholder represents the unnamed parameter.
建構函式
VectorEnumerator<TValue>(IVector<TValue>, Int32) |
配置並初始化新的 VectorEnumerator<TValue> 物件。Allocates and initializes a new VectorEnumerator<TValue> object. |
屬性
Current |
取得或設定集合中目前的項目。Gets or sets the current element in the collection. |
方法
Dispose() |
釋出、釋放或重設 VectorEnumerator<TValue> 物件所使用的 Unmanaged 資源。Frees, releases, or resets unmanaged resources that are used by the VectorEnumerator<TValue> object. |
Dispose(Boolean) |
釋出、釋放或重設 VectorEnumerator<TValue> 物件所使用的 Unmanaged 資源。Frees, releases, or resets unmanaged resources that are used by the VectorEnumerator<TValue> object. |
Equals(Object) |
判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object. (繼承來源 Object) |
GetHashCode() |
作為預設雜湊函數。Serves as the default hash function. (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。Gets 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 element in the collection. |
Reset() |
設定列舉值至它的初始位置,這是在集合中第一個項目之前。Sets the enumerator to its initial position, which is before the first element in the collection. |
ToString() |
傳回代表目前物件的字串。Returns a string that represents the current object. (繼承來源 Object) |