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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version