CollectionsUtil.CreateCaseInsensitiveHashtable 方法

定義

建立忽略字串大小寫的 Hashtable 類別的新執行個體。

多載

CreateCaseInsensitiveHashtable()

建立具有預設初始容量的 Hashtable 類別之新的區分大小寫執行個體。

CreateCaseInsensitiveHashtable(IDictionary)

從指定的字典複製項目到具有與複製項目數相同的初始容量之 Hashtable 類別之新的不區分大小寫執行個體。

CreateCaseInsensitiveHashtable(Int32)

建立具有指定初始容量的 Hashtable 類別之新的區分大小寫執行個體。

CreateCaseInsensitiveHashtable()

來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs

建立具有預設初始容量的 Hashtable 類別之新的區分大小寫執行個體。

public:
 static System::Collections::Hashtable ^ CreateCaseInsensitiveHashtable();
public static System.Collections.Hashtable CreateCaseInsensitiveHashtable ();
static member CreateCaseInsensitiveHashtable : unit -> System.Collections.Hashtable
Public Shared Function CreateCaseInsensitiveHashtable () As Hashtable

傳回

具有預設初始容量的 Hashtable 類別之新的區分大小寫執行個體。

備註

CreateCaseInsensitiveHashtable不使用 方法,請使用 Hashtable.Hashtable(IEqualityComparer) 建構函式來建立不區分大小寫的Hashtable類別。

另請參閱

適用於

CreateCaseInsensitiveHashtable(IDictionary)

來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs

從指定的字典複製項目到具有與複製項目數相同的初始容量之 Hashtable 類別之新的不區分大小寫執行個體。

public:
 static System::Collections::Hashtable ^ CreateCaseInsensitiveHashtable(System::Collections::IDictionary ^ d);
public static System.Collections.Hashtable CreateCaseInsensitiveHashtable (System.Collections.IDictionary d);
static member CreateCaseInsensitiveHashtable : System.Collections.IDictionary -> System.Collections.Hashtable
Public Shared Function CreateCaseInsensitiveHashtable (d As IDictionary) As Hashtable

參數

d
IDictionary

要複製至新的不區分大小寫之 IDictionaryHashtable

傳回

Hashtable 類別之新的不區分大小寫執行個體,含有來自指定 IDictionary 的項目。

例外狀況

dnull

備註

CreateCaseInsensitiveHashtable不使用 方法,請使用 Hashtable.Hashtable(IDictionary, IEqualityComparer) 建構函式來建立不區分大小寫的Hashtable類別。

另請參閱

適用於

CreateCaseInsensitiveHashtable(Int32)

來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs

建立具有指定初始容量的 Hashtable 類別之新的區分大小寫執行個體。

public:
 static System::Collections::Hashtable ^ CreateCaseInsensitiveHashtable(int capacity);
public static System.Collections.Hashtable CreateCaseInsensitiveHashtable (int capacity);
static member CreateCaseInsensitiveHashtable : int -> System.Collections.Hashtable
Public Shared Function CreateCaseInsensitiveHashtable (capacity As Integer) As Hashtable

參數

capacity
Int32

Hashtable 可初始包含項目的大約數目。

傳回

具有指定初始容量的 Hashtable 類別之新的區分大小寫執行個體。

例外狀況

capacity 小於零。

備註

CreateCaseInsensitiveHashtable不使用 方法,請使用 Hashtable.Hashtable(Int32, IEqualityComparer) 建構函式來建立不區分大小寫的Hashtable類別。

另請參閱

適用於