MsieJavaScriptEngine.JsRt.JavaScriptContext.EnumerateHeap C# (CSharp) Method

EnumerateHeap() public static method

Enumerates the heap of the current context.

While the heap is being enumerated, the current context cannot be removed, and all calls to modify the state of the context will fail until the heap enumerator is released.

Requires an active script context.

public static EnumerateHeap ( ) : Native.IActiveScriptProfilerHeapEnum
return Native.IActiveScriptProfilerHeapEnum
        public static Native.IActiveScriptProfilerHeapEnum EnumerateHeap()
        {
            Native.IActiveScriptProfilerHeapEnum enumerator;
            Native.ThrowIfError(Native.JsEnumerateHeap(out enumerator));
            return enumerator;
        }