AppDomain.MonitoringSurvivedMemorySize 屬性

定義

取得自上次回收作業後存留下來,且已知正由目前應用程式定義域參考之位元組的數目。

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

屬性值

存留的位元組數目。

屬性

例外狀況

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

備註

統計資料會隨著每個垃圾收集一起更新。 不過,它們保證只有在完整封鎖集合之後才會正確;也就是說,包含所有世代的集合,而且會在集合發生時停止應用程式。 例如, GC.Collect() 方法多載會執行完整的封鎖集合。 (Concurrent 集合發生在背景中,且不會封鎖 application.)

適用於

另請參閱