ChromiumFX/Generated/CfxV8Value.cs
/// <summary>
/// Execute the function using the current V8 context. This function should
/// only be called from within the scope of a CfxV8Handler or
/// CfxV8Accessor callback, or in combination with calling enter() and
/// exit() on a stored CfxV8Context reference. |object| is the receiver
/// ('this' object) of the function. If |object| is NULL the current 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 current V8 context. This function should
only be called from within the scope of a CfxV8Handler or
CfxV8Accessor callback, or in combination with calling enter() and
exit() on a stored CfxV8Context reference. |object| is the receiver
('this' object) of the function. If |object| is NULL the current 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 current V8 context . This function should only be called from within the scope of a CfxV8Handler or CfxV8Accessor callback or in combination with calling enter () and exit () on a stored CfxV8Context reference . |object| is the receiver ( ' this ' object ) of the function . If |object| is NULL the current 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 ExecuteFunction(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(NativePtr, CfxV8Value.Unwrap(@object), arguments_length, arguments_pinned.PinnedPtr);
            arguments_pinned.Free();
            return CfxV8Value.Wrap(__retval);
        }
public CfxV8Value ExecuteFunction ( 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 ( NativePtr , CfxV8Value . Unwrap ( @object ) , arguments_length , arguments_pinned . PinnedPtr ) ; arguments_pinned . Free ( ) ; return CfxV8Value . Wrap ( __retval ) ; }
Execute the function using the current V8 context.
Execute the function using the current V8 context .
@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