ChromiumFX/Generated/Remote/CfrV8Value.cs
/// <summary>
/// Execute the function using the specified V8 context. |object| is the
/// receiver ('this' object) of the function. If |object| is NULL the specified
/// context's global object will be used. |arguments| is the list of arguments
/// that will be passed to the function. Returns the function return value on
/// success. Returns NULL if this function is called incorrectly or an
/// exception is thrown.
/// </summary>
/// <remarks>
/// See also the original CEF documentation in
/// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_v8_capi.h">cef/include/capi/cef_v8_capi.h</see>.
/// </remarks>
Execute the function using the specified V8 context. |object| is the
receiver ('this' object) of the function. If |object| is NULL the specified
context's global object will be used. |arguments| is the list of arguments
that will be passed to the function. Returns the function return value on
success. Returns NULL if this function is called incorrectly or an
exception is thrown.
Execute the function using the specified V8 context . |object| is the receiver ( ' this ' object ) of the function . If |object| is NULL the specified context ' s global object will be used . |arguments| is the list of arguments that will be passed to the function . Returns the function return value on success . Returns NULL if this function is called incorrectly or an exception is thrown .
public CfrV8Value ExecuteFunctionWithContext(CfrV8Context context, CfrV8Value @object, CfrV8Value[] arguments) {
            var connection = RemotePtr.connection;
            var call = new CfxV8ValueExecuteFunctionWithContextRemoteCall();
            call.@this = RemotePtr.ptr;
            if(!CfrObject.CheckConnection(context, connection)) throw new ArgumentException("Render process connection mismatch.", "context");
            call.context = CfrObject.Unwrap(context).ptr;
            if(!CfrObject.CheckConnection(@object, connection)) throw new ArgumentException("Render process connection mismatch.", "object");
            call.@object = CfrObject.Unwrap(@object).ptr;
            if(arguments != null) {
                call.arguments = new IntPtr[arguments.Length];
                for(int i = 0; i < arguments.Length; ++i) {
                    if(!CheckConnection(arguments[i], connection)) throw new ArgumentException("Render process connection mismatch.", "arguments[" + i + "]");
                    call.arguments[i] = CfrObject.Unwrap(arguments[i]).ptr;
                }
            }
            call.RequestExecution(connection);
            return CfrV8Value.Wrap(new RemotePtr(connection, call.__retval));
        }
public CfrV8Value ExecuteFunctionWithContext ( CfrV8Context context , CfrV8Value @object , CfrV8Value [ ] arguments ) { var connection = RemotePtr . connection ; var call = new CfxV8ValueExecuteFunctionWithContextRemoteCall ( ) ; call . @this = RemotePtr . ptr ; if ( ! CfrObject . CheckConnection ( context , connection ) ) throw new ArgumentException ( " " , " " ) ; call . context = CfrObject . Unwrap ( context ) . ptr ; if ( ! CfrObject . CheckConnection ( @object , connection ) ) throw new ArgumentException ( " " , " " ) ; call . @object = CfrObject . Unwrap ( @object ) . ptr ; if ( arguments != null ) { call . arguments = new IntPtr [ arguments . Length ] ; for ( int i = 0 ; i < arguments . Length ; ++ i ) { if ( ! CheckConnection ( arguments [ i ] , connection ) ) throw new ArgumentException ( " " , " " + i + " " ) ; call . arguments [ i ] = CfrObject . Unwrap ( arguments [ i ] ) . ptr ; } } call . RequestExecution ( connection ) ; return CfrV8Value . Wrap ( new RemotePtr ( connection , call . __retval ) ) ; }
Execute the function using the specified V8 context.
Execute the function using the specified V8 context .
context
CfrV8Context
@object
CfrV8Value
arguments
CfrV8Value[]
remarks
See also the original CEF documentation in
cef/include/capi/cef_v8_capi.h
See also the original CEF documentation in cef / include / capi / cef_v8_capi . h