MsieJavaScriptEngine.JsRt.JavaScriptContext.SetException C# (CSharp) 메소드

SetException() 공개 정적인 메소드

Sets the runtime of the current context to an exception state.

If the runtime of the current context is already in an exception state, this API will throw JsErrorInExceptionState.

Requires an active script context.

public static SetException ( JavaScriptValue exception ) : void
exception JavaScriptValue /// The JavaScript exception to set for the runtime of the current context. ///
리턴 void
        public static void SetException(JavaScriptValue exception)
        {
            Native.ThrowIfError(Native.JsSetException(exception));
        }