語言

HandleCollector 建構函式

定義

多載

名稱 Description
HandleCollector(String, Int32)

利用名稱和開始處理程序收集的閾值初始化該類別的新 HandleCollector 實例。

HandleCollector(String, Int32, Int32)

利用名稱、開始 handle collection 的門檻,以及必須在 handle 收集的門檻來初始化該 HandleCollector 類別的新實例。

HandleCollector(String, Int32)

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

收藏家的名字。 這個參數讓你可以分別命名追蹤 handle 類型的收集器。

initialThreshold
Int32

一個指定集合應從哪個點開始的值。

例外狀況

參數 initialThreshold 小於 0。

適用於

HandleCollector(String, Int32, Int32)

來源:
HandleCollector.cs
來源:
HandleCollector.cs
來源:
HandleCollector.cs
來源:
HandleCollector.cs
來源:
HandleCollector.cs

利用名稱、開始 handle collection 的門檻,以及必須在 handle 收集的門檻來初始化該 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

收藏家的名字。 這個參數讓你可以分別命名追蹤 handle 類型的收集器。

initialThreshold
Int32

一個指定集合應從哪個點開始的值。

maximumThreshold
Int32

一個指定集合必須發生的點的值。 此設定應設定為可用 handle 的最大數量。

例外狀況

參數 initialThreshold 小於 0。

-或-

參數 maximumThreshold 小於 0。

參數maximumThreshold小於參數。initialThreshold

適用於