ProjectFilterResultsDictionary 构造函数 (Int32, IEqualityComparer)

此构造函数将初始化 ProjectFilterResultsDictionary 类的新实例。

命名空间:Microsoft.Windows.Kits.Hardware.ObjectModel

程序集:Microsoft.Windows.Kits.Hardware.ObjectModel(在 Microsoft.Windows.Kits.Hardware.ObjectModel 中)

用法

Visual Basic

Dim capacity As Integer

Dim comparer As IEqualityComparer(Of TestResult)

Dim instance As New ProjectFilterResultsDictionary(capacity, comparer)

语法

Visual Basic

Public Sub New ( _

          capacity As Integer, _

          comparer As IEqualityComparer(Of TestResult) _

)

C#

public ProjectFilterResultsDictionary (

          int capacity,

          IEqualityComparer<TestResult> comparer

)

参数

容量

字典可包含的初始元素数。

comparer

比较键时使用的 System.Collections.Generic.IEqualityComparer 实现,或 NULL 以使用默认的 EqualityComparer 作为键类型。