ChromiumFX/Generated/CfxV8Value.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 CfxV8Value ExecuteFunctionWithContext(CfxV8Context context, CfxV8Value @object, CfxV8Value[] arguments) {
            UIntPtr arguments_length;
            IntPtr[] arguments_ptrs;
            if(arguments != null) {
                arguments_length = (UIntPtr)arguments.Length;
                arguments_ptrs = new IntPtr[arguments.Length];
                for(int i = 0; i < arguments.Length; ++i) {
                    arguments_ptrs[i] = CfxV8Value.Unwrap(arguments[i]);
                }
            } else {
                arguments_length = UIntPtr.Zero;
                arguments_ptrs = null;
            }
            PinnedObject arguments_pinned = new PinnedObject(arguments_ptrs);
            var __retval = CfxApi.V8Value.cfx_v8value_execute_function_with_context(NativePtr, CfxV8Context.Unwrap(context), CfxV8Value.Unwrap(@object), arguments_length, arguments_pinned.PinnedPtr);
            arguments_pinned.Free();
            return CfxV8Value.Wrap(__retval);
        }
public CfxV8Value ExecuteFunctionWithContext ( CfxV8Context context , CfxV8Value @object , CfxV8Value [ ] arguments ) { UIntPtr arguments_length ; IntPtr [ ] arguments_ptrs ; if ( arguments != null ) { arguments_length = ( UIntPtr ) arguments . Length ; arguments_ptrs = new IntPtr [ arguments . Length ] ; for ( int i = 0 ; i < arguments . Length ; ++ i ) { arguments_ptrs [ i ] = CfxV8Value . Unwrap ( arguments [ i ] ) ; } } else { arguments_length = UIntPtr . Zero ; arguments_ptrs = null ; } PinnedObject arguments_pinned = new PinnedObject ( arguments_ptrs ) ; var __retval = CfxApi . V8Value . cfx_v8value_execute_function_with_context ( NativePtr , CfxV8Context . Unwrap ( context ) , CfxV8Value . Unwrap ( @object ) , arguments_length , arguments_pinned . PinnedPtr ) ; arguments_pinned . Free ( ) ; return CfxV8Value . Wrap ( __retval ) ; }
Execute the function using the specified V8 context.
Execute the function using the specified V8 context .
context
CfxV8Context
@object
CfxV8Value
arguments
CfxV8Value[]
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