Click or drag to resize

V8FastHostObjectConfiguration<TObject>.AddPropertyGetter(String, V8FastHostPropertyGetter<TObject>, V8FastHostPropertyFlags) Method

Adds a getter for a read-only property with the specified attributes.

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

Parameters

name  String
The property name.
getter  V8FastHostPropertyGetter<TObject>
A callback that gets the property value.
flags  V8FastHostPropertyFlags
The attributes of the property configured by this method.
Remarks
In the context of this method, the only effective property attributes are Cacheable and Enumerable. Properties configured by this method cannot be assigned or deleted.
See Also