V8FastHostObjectConfiguration<TObject>.AddPropertyAccessors<TField>(String, V8FastHostFieldAccessor<TObject, TField>) Method |
Adds accessors for a field-backed property.
Namespace: Microsoft.ClearScript.V8.FastProxyAssembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntaxpublic void AddPropertyAccessors<TField>(
string name,
V8FastHostFieldAccessor<TObject, TField> accessor
)
Public Sub AddPropertyAccessors(Of TField) (
name As String,
accessor As V8FastHostFieldAccessor(Of TObject, TField)
)
public:
generic<typename TField>
void AddPropertyAccessors(
String^ name,
V8FastHostFieldAccessor<TObject, TField>^ accessor
)
member AddPropertyAccessors :
name : string *
accessor : V8FastHostFieldAccessor<'TObject, 'TField> -> unit
Parameters
- name String
- The property name.
- accessor V8FastHostFieldAccessor<TObject, TField>
- A callback that provides access to the field.
Type Parameters
- TField
- The field type.
Remarks
Properties configured by this method are not enumerable and cannot be deleted.
See Also