ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8.FastProxy
V8FastHostObjectConfiguration<TObject> Class
V8FastHostObjectConfiguration<TObject> Methods
AddPropertyAccessors Method
AddPropertyAccessors<TField>(String, V8FastHostFieldAccessor<TObject, TField>) Method
AddPropertyAccessors(String, V8FastHostPropertyGetter<TObject>, V8FastHostPropertySetter<TObject>) Method
AddPropertyAccessors<TField>(String, V8FastHostFieldAccessor<TObject, TField>, V8FastHostPropertyFlags) Method
AddPropertyAccessors(String, V8FastHostPropertyGetter<TObject>, V8FastHostPropertySetter<TObject>, V8FastHostPropertyFlags) Method

# 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
C#
VB
C++
F#
Copy

    public void AddPropertyAccessors(
    	string name,
    	V8FastHostPropertyGetter<TObject> getter,
    	V8FastHostPropertySetter<TObject> setter
    )

    Public Sub AddPropertyAccessors (
    	name As String,
    	getter As V8FastHostPropertyGetter(Of TObject),
    	setter As V8FastHostPropertySetter(Of TObject)
    )

    public:
    void AddPropertyAccessors(
    	String^ name,
    	V8FastHostPropertyGetter<TObject>^ getter,
    	V8FastHostPropertySetter<TObject>^ setter
    )

    member AddPropertyAccessors :
            name : string *
            getter : V8FastHostPropertyGetter<'TObject> *
            setter : V8FastHostPropertySetter<'TObject> -> 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.

Remarks
Properties configured by this method are not enumerable and cannot be deleted.
See Also

#### Reference

V8FastHostObjectConfigurationTObject Class
AddPropertyAccessors Overload
Microsoft.ClearScript.V8.FastProxy Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft