Environment.WorkingSet 속성

정의

프로세스 컨텍스트에 매핑되는 실제 메모리의 크기를 가져옵니다.

public:
 static property long WorkingSet { long get(); };
public static long WorkingSet { get; }
member this.WorkingSet : int64
Public Shared ReadOnly Property WorkingSet As Long

속성 값

Int64

프로세스 컨텍스트에 매핑되는 실제 메모리의 바이트 수가 포함된 부호 있는 64비트 정수입니다.

예제

다음 예제에서는 코드 예제를 실행 하는 컴퓨터의 작업 집합의 크기를 표시 합니다.

// Sample for the Environment::WorkingSet property
using namespace System;
int main()
{
   Console::WriteLine( "WorkingSet: {0}", Environment::WorkingSet );
}

/*
This example produces the following results:

WorkingSet: 5038080
*/
// Sample for the Environment.WorkingSet property
using System;

class Sample
{
    public static void Main()
    {
    Console.WriteLine("WorkingSet: {0}", Environment.WorkingSet);
    }
}
/*
This example produces the following results:

WorkingSet: 5038080
*/
// Sample for the Environment.WorkingSet property
open System

printfn $"WorkingSet: {Environment.WorkingSet}"

// This example produces the following results:
//     WorkingSet: 5038080
' Sample for the Environment.WorkingSet property
Class Sample
   Public Shared Sub Main()
      Console.WriteLine("WorkingSet: {0}", Environment.WorkingSet)
   End Sub
End Class
'
'This example produces the following results:
'
'WorkingSet: 5038080
'

적용 대상