語言

HashEnumerator<TKey,TValue> 類別

定義

支援對任何實作該 IHash<TKey,TValue> 介面的 STL/CLR 物件進行簡單迭代。

generic <typename TKey, typename TValue>
public ref class HashEnumerator : Microsoft::VisualC::StlClr::HashEnumeratorBase<TKey, TValue>, System::Collections::Generic::IEnumerator<TValue>
public class HashEnumerator<TKey,TValue> : Microsoft.VisualC.StlClr.HashEnumeratorBase<TKey,TValue>, System.Collections.Generic.IEnumerator<TValue>
type HashEnumerator<'Key, 'Value> = class
    inherit HashEnumeratorBase<'Key, 'Value>
    interface IEnumerator<'Value>
Public Class HashEnumerator(Of TKey, TValue)
Inherits HashEnumeratorBase(Of TKey, TValue)
Implements IEnumerator(Of TValue)

類型參數

TKey

雜湊迭代鍵的類型。

TValue

雜湊迭代器值的類型。

繼承
HashEnumerator<TKey,TValue>
實作

備註

有些方法,特別是運算子,會宣告參數的型別,但不指定參數名稱。 這樣的參數稱為 無名參數。 在這些方法的文件中, A_0 佔位符代表未命名的參數。

建構函式

名稱 Description
HashEnumerator<TKey,TValue>(INode<TValue>)

分配並初始化一個新 HashEnumerator<TKey,TValue> 物件。

屬性

名稱 Description
Current

取得或設定集合中目前的元素。

方法

名稱 Description
Dispose()

釋放、釋放或重設物件所使用的 HashEnumerator<TKey,TValue> 未管理資源。

Dispose(Boolean)

釋放、釋放或重設物件所使用的 HashEnumerator<TKey,TValue> 未管理資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
MoveNext()

將列舉器推進到集合中的下一個元素。

Reset()

將列舉值設定為其初始位置,也就是集合中第一個專案之前。

ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於