C# Environment WorkingSet
Description
Environment WorkingSet
gets the amount of physical memory
mapped to the process context.
Syntax
Environment.WorkingSet
has the following syntax.
public static long WorkingSet { get; }
Example
The following example displays the size of the working set of the computer that runs the code example.
//from w ww . j ava2 s .co m
using System;
class Sample
{
public static void Main()
{
Console.WriteLine("WorkingSet: {0}", Environment.WorkingSet);
}
}
The code above generates the following result.