ChromiumFX/Generated/CfxV8Value.cs
/// <summary>
/// Associates a value with the specified identifier and returns true (1) on
/// success. Returns false (0) if this function is called incorrectly or an
/// exception is thrown. For read-only values this function will return true
/// (1) even though assignment failed.
/// </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>
Associates a value with the specified identifier and returns true (1) on
success. Returns false (0) if this function is called incorrectly or an
exception is thrown. For read-only values this function will return true
(1) even though assignment failed.
Associates a value with the specified identifier and returns true ( 1 ) on success . Returns false ( 0 ) if this function is called incorrectly or an exception is thrown . For read - only values this function will return true ( 1 ) even though assignment failed .
public bool SetValue(string key, CfxV8Value value, CfxV8PropertyAttribute attribute) {
            var key_pinned = new PinnedString(key);
            var __retval = CfxApi.V8Value.cfx_v8value_set_value_bykey(NativePtr, key_pinned.Obj.PinnedPtr, key_pinned.Length, CfxV8Value.Unwrap(value), (int)attribute);
            key_pinned.Obj.Free();
            return 0 != __retval;
        }
public bool SetValue ( string key , CfxV8Value value , CfxV8PropertyAttribute attribute ) { var key_pinned = new PinnedString ( key ) ; var __retval = CfxApi . V8Value . cfx_v8value_set_value_bykey ( NativePtr , key_pinned . Obj . PinnedPtr , key_pinned . Length , CfxV8Value . Unwrap ( value ) , ( int ) attribute ) ; key_pinned . Obj . Free ( ) ; return 0 != __retval ; }
Associates a value with the specified identifier and returns true (1) on
success.
Associates a value with the specified identifier and returns true ( 1 ) on success .
key
string
value
CfxV8Value
attribute
CfxV8PropertyAttribute
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