AppDomain.MonitoringSurvivedProcessMemorySize 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得所有應用程式域中最後一個集合中存活的總位元組。
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 數字。 在短暫收集後,這個數字代表目前在短暫世代中仍存活的位元組數。