.NET Framework Class Library
AppDomain..::.MonitoringSurvivedMemorySize Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the number of bytes that survived the last full, blocking collection and that are known to be referenced by the current application domain.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property MonitoringSurvivedMemorySize As Long
    Get
Visual Basic (Usage)
Dim instance As AppDomain
Dim value As Long

value = instance.MonitoringSurvivedMemorySize
C#
public long MonitoringSurvivedMemorySize { get; }
Visual C++
public:
property long long MonitoringSurvivedMemorySize {
    long long get ();
}
F#
member MonitoringSurvivedMemorySize : int64

Property Value

Type: System..::.Int64
The number of surviving bytes.
Exceptions

ExceptionCondition
InvalidOperationException

The static (Shared in Visual Basic) MonitoringIsEnabled property is set to false.

Remarks

Statistics are updated only after a full, blocking collection; that is, a collection that includes all generations and that stops the application while collection occurs. For example, the GC..::.Collect()()() method overload performs a full, blocking collection. (Concurrent collection occurs in the background and does not block the application.)

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4
See Also

Reference

Page view tracker