V8FastHostObjectConfiguration<TObject>.AddPropertyAccessors(String, V8FastHostPropertyGetter<TObject>, V8FastHostPropertySetter<TObject>, V8FastHostPropertyFlags) Method |
Adds accessors for a property with the specified attributes.
Namespace: Microsoft.ClearScript.V8.FastProxyAssembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntaxpublic abstract void AddPropertyAccessors(
string name,
V8FastHostPropertyGetter<TObject> getter,
V8FastHostPropertySetter<TObject> setter,
V8FastHostPropertyFlags flags
)
Public MustOverride Sub AddPropertyAccessors (
name As String,
getter As V8FastHostPropertyGetter(Of TObject),
setter As V8FastHostPropertySetter(Of TObject),
flags As V8FastHostPropertyFlags
)
public:
virtual void AddPropertyAccessors(
String^ name,
V8FastHostPropertyGetter<TObject>^ getter,
V8FastHostPropertySetter<TObject>^ setter,
V8FastHostPropertyFlags flags
) abstract
abstract AddPropertyAccessors :
name : string *
getter : V8FastHostPropertyGetter<'TObject> *
setter : V8FastHostPropertySetter<'TObject> *
flags : V8FastHostPropertyFlags -> unit
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.
- 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 deleted.
See Also