語言

CollectionsUtil.CreateCaseInsensitiveHashtable 方法

定義

建立一個忽略字串情況的類別新實例 Hashtable 。

多載

名稱 Description
CreateCaseInsensitiveHashtable()

建立一個以預設初始容量為基礎的類別新大小寫不區分實例 Hashtable 。

CreateCaseInsensitiveHashtable(IDictionary)

將指定字典的條目複製到該類別的新大小寫不區分實例 Hashtable ,初始容量與複製的條目數相同。

CreateCaseInsensitiveHashtable(Int32)

建立一個具有指定初始容量的類別新大小寫不區分實例 Hashtable 。

CreateCaseInsensitiveHashtable()

來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs
來源:
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
來源:
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

複製 IDictionary 到一個新的,與案例無關 Hashtable。

傳回

包含指定 Hashtable的 條目 的類別中一個新的大小寫不區分實例IDictionary。

例外狀況

d 是 null。

備註

與其使用該 CreateCaseInsensitiveHashtable 方法,不如使用 Hashtable.Hashtable(IDictionary, IEqualityComparer) 建構子建立一個大小寫不區分 Hashtable 的類別。

另請參閱

適用於

CreateCaseInsensitiveHashtable(Int32)

來源:
CollectionsUtil.cs
來源:
CollectionsUtil.cs
來源:
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 的類別。

另請參閱

適用於