HandleCollector Constructor (String, Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the HandleCollector class using a name and a threshold at which to begin handle collection.

Namespace:   System.Runtime.InteropServices
Assembly:  System (in System.dll)

public HandleCollector(
	string name,
	int initialThreshold


Type: System.String

A name for the collector. This parameter allows you to name collectors that track handle types separately.

Type: System.Int32

A value that specifies the point at which collections should begin.

Exception Condition

The initialThreshold parameter is less than 0.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1
Return to top