MsieJavaScriptEngine.JsRt.Native.JsEnumerateHeap C# (CSharp) Method

JsEnumerateHeap() private method

private JsEnumerateHeap ( IActiveScriptProfilerHeapEnum &enumerator ) : JavaScriptErrorCode
enumerator IActiveScriptProfilerHeapEnum
return JavaScriptErrorCode
        internal static extern JavaScriptErrorCode JsEnumerateHeap(out IActiveScriptProfilerHeapEnum enumerator);

Usage Example

 /// <summary>
 /// Enumerates the heap of the current context.
 /// </summary>
 /// <remarks>
 /// <para>
 /// 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.
 /// </para>
 /// <para>
 /// Requires an active script context.
 /// </para>
 /// </remarks>
 /// <returns>A heap enumerator.</returns>
 public static Native.IActiveScriptProfilerHeapEnum EnumerateHeap()
 {
     Native.IActiveScriptProfilerHeapEnum enumerator;
     Native.ThrowIfError(Native.JsEnumerateHeap(out enumerator));
     return(enumerator);
 }
Native