語言

AppDomain.MonitoringSurvivedProcessMemorySize 屬性

定義

取得所有應用程式域中最後一個集合中存活的總位元組。

public:
 static property long MonitoringSurvivedProcessMemorySize { long get(); };
public static long MonitoringSurvivedProcessMemorySize { get; }
public static long MonitoringSurvivedProcessMemorySize { [System.Security.SecurityCritical] get; }
static member MonitoringSurvivedProcessMemorySize : int64
[<get: System.Security.SecurityCritical>]
static member MonitoringSurvivedProcessMemorySize : int64
Public Shared ReadOnly Property MonitoringSurvivedProcessMemorySize As Long

屬性值

該程序存活的位元組總數。

屬性

例外狀況

static(Visual Basic 中Shared)MonitoringIsEnabled 屬性設為 false。

備註

在完整的區塊收集後,這個數字代表目前在管理堆積中存活的位元組數。 應該接近方法報告的 GetTotalMemory 數字。 在短暫收集後,這個數字代表目前在短暫世代中仍存活的位元組數。

適用於

另請參閱