HashEnumerator<TKey,TValue> HashEnumerator<TKey,TValue> HashEnumerator<TKey,TValue> HashEnumerator<TKey,TValue> Class

定義

支援在任何實作 IHash<TKey,TValue> 介面的 STL/CLR 物件上進行簡單的反覆運算。Supports simple iteration over any STL/CLR object that implements the IHash<TKey,TValue> interface.

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

雜湊 Iterator 索引鍵的型別。The type of the hash iterator key.

TValue

雜湊 Iterator 值的型別。The type of the hash iterator value.

繼承
HashEnumerator<TKey,TValue>HashEnumerator<TKey,TValue>HashEnumerator<TKey,TValue>HashEnumerator<TKey,TValue>
實作

備註

某些方法 (特別是運算子) 會宣告參數的類型,但不會指定參數名稱。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.

建構函式

HashEnumerator<TKey,TValue>(INode<TValue>) HashEnumerator<TKey,TValue>(INode<TValue>) HashEnumerator<TKey,TValue>(INode<TValue>) HashEnumerator<TKey,TValue>(INode<TValue>)

配置並初始化新的 HashEnumerator<TKey,TValue> 物件。Allocates and initializes a new HashEnumerator<TKey,TValue> object.

屬性

Current Current Current Current

取得或設定集合中目前的項目。Gets or sets the current element in the collection.

方法

Dispose() Dispose() Dispose() Dispose()

釋出、釋放或重設 HashEnumerator<TKey,TValue> 物件所使用的 Unmanaged 資源。Frees, releases, or resets unmanaged resources that are used by the HashEnumerator<TKey,TValue> object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

釋出、釋放或重設 HashEnumerator<TKey,TValue> 物件所使用的 Unmanaged 資源。Frees, releases, or resets unmanaged resources that are used by the HashEnumerator<TKey,TValue> object.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
MoveNext() MoveNext() MoveNext() MoveNext()

將列舉值設為集合中的下一個項目。Advances the enumerator to the next element in the collection.

Reset() Reset() Reset() Reset()

設定列舉值至它的初始位置,這是在集合中第一個項目之前。Sets the enumerator to its initial position, which is before the first element in the collection.

ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於