SetFunctionTemplateProperty() private method

private SetFunctionTemplateProperty ( NativeFunctionTemplateProxy proxy, string name, HandleProxy value, V8PropertyAttributes attributes = V8PropertyAttributes.None ) : void
proxy NativeFunctionTemplateProxy
name string
value HandleProxy
attributes V8PropertyAttributes
return void
示例#1
0
        // --------------------------------------------------------------------------------------------------------------------

        /// <summary>
        /// Calls the V8 'Set()' function on the underlying native function template to set properties that will exist on all function objects created from this template.
        /// </summary>
        public void SetProperty(string name, InternalHandle value, V8PropertyAttributes attributes = V8PropertyAttributes.Undefined)
        {
            if (name.IsNullOrWhiteSpace())
            {
                throw new ArgumentNullException("name (cannot be null, empty, or only whitespace)");
            }

            V8NetProxy.SetFunctionTemplateProperty(_NativeFunctionTemplateProxy, name, value, attributes);
        }