Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Runtime.​InteropServices.​HandleCollector

Assembly: System.Runtime.InteropServices

Inheritance: object → HandleCollector

Tracks outstanding handles and forces a garbage collection when the specified threshold is reached.

Properties

public int
Count
Gets the number of handles collected.
public int
InitialThreshold
Gets a value that specifies the point at which collections should begin.
public int
MaximumThreshold
Gets a value that specifies the point at which collections must occur.
public string
Name
Gets the name of a <see cref="T:System.Runtime.InteropServices.HandleCollector" /> object.

Methods

public void
Add​()
Increments the current handle count.
public void
Remove​()
Decrements the current handle count.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object