HandleCollector 构造函数

定义

重载

名称 说明
HandleCollector(String, Int32)

使用名称和开始处理集合的 HandleCollector 阈值初始化类的新实例。

HandleCollector(String, Int32, Int32)

使用名称、开始处理集合的阈值和必须发生句柄集合的阈值初始化类的新实例 HandleCollector

HandleCollector(String, Int32)

Source:
HandleCollector.cs
Source:
HandleCollector.cs
Source:
HandleCollector.cs
Source:
HandleCollector.cs
Source:
HandleCollector.cs

使用名称和开始处理集合的 HandleCollector 阈值初始化类的新实例。

public:
 HandleCollector(System::String ^ name, int initialThreshold);
public HandleCollector(string name, int initialThreshold);
public HandleCollector(string? name, int initialThreshold);
new System.Runtime.InteropServices.HandleCollector : string * int -> System.Runtime.InteropServices.HandleCollector
Public Sub New (name As String, initialThreshold As Integer)

参数

name
String

收集器的名称。 此参数允许你为单独跟踪句柄类型的收集器命名。

initialThreshold
Int32

一个值,该值指定集合应开始的点。

例外

参数 initialThreshold 小于 0。

适用于

HandleCollector(String, Int32, Int32)

Source:
HandleCollector.cs
Source:
HandleCollector.cs
Source:
HandleCollector.cs
Source:
HandleCollector.cs
Source:
HandleCollector.cs

使用名称、开始处理集合的阈值和必须发生句柄集合的阈值初始化类的新实例 HandleCollector

public:
 HandleCollector(System::String ^ name, int initialThreshold, int maximumThreshold);
public HandleCollector(string name, int initialThreshold, int maximumThreshold);
public HandleCollector(string? name, int initialThreshold, int maximumThreshold);
new System.Runtime.InteropServices.HandleCollector : string * int * int -> System.Runtime.InteropServices.HandleCollector
Public Sub New (name As String, initialThreshold As Integer, maximumThreshold As Integer)

参数

name
String

收集器的名称。 此参数允许你为单独跟踪句柄类型的收集器命名。

initialThreshold
Int32

一个值,该值指定集合应开始的点。

maximumThreshold
Int32

一个值,该值指定集合必须发生的点。 这应设置为可用句柄的最大数目。

例外

参数 initialThreshold 小于 0。

-或-

参数 maximumThreshold 小于 0。

参数 maximumThreshold 小于 initialThreshold 参数。

适用于