GCMemoryInfo.Index Property

Definition

Gets the index of this GC.

C#
public long Index { get; }

Property Value

The index of this GC.

Remarks

GC indices start with 1 and are increased at the beginning of a GC. Since the information is updated at the end of a GC, this means you can get the information for a background GC with a smaller index than a foreground GC that finished earlier.

Applies to

Produkt Verzie
.NET 5, 6, 7, 8, 9, 10