WebProcessStatistics.ManagedHeapSize 属性

定义

获取托管堆的大小。

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

属性值

托管堆的大小。

示例

下面的代码示例演示如何获取 ManagedHeapSize 值。

public string GetManagedHeapSize()
{
    // Get the mamaged heap size.
    return (string.Format(
        "Managed heap size: {0}",
        processStatistics.ManagedHeapSize.ToString()));
}
Public Function GetManagedHeapSize() As String
    ' Get the mamaged heap size.
    Return String.Format( _
    "Managed heap size: {0}", _
    processStatistics.ManagedHeapSize.ToString())
End Function 'GetManagedHeapSize

适用于