Click or drag to resize

V8FastHostObjectConfiguration<TObject>.AddPropertyAccessors(String, V8FastHostPropertyGetter<TObject>, V8FastHostPropertySetter<TObject>) Method

Adds accessors for a property.

Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
public void AddPropertyAccessors(
	string name,
	V8FastHostPropertyGetter<TObject> getter,
	V8FastHostPropertySetter<TObject> setter
)

Parameters

name  String
The property name.
getter  V8FastHostPropertyGetter<TObject>
A callback that gets the property value.
setter  V8FastHostPropertySetter<TObject>
A callback that sets the property value.
Remarks
Properties configured by this method are not enumerable and cannot be deleted.
See Also