V8FastHostObjectConfiguration<TObject>.AddPropertyGetter(String, V8FastHostPropertyGetter<TObject>) Method |
Adds a getter for a read-only property.
Namespace: Microsoft.ClearScript.V8.FastProxyAssembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntaxpublic void AddPropertyGetter(
string name,
V8FastHostPropertyGetter<TObject> getter
)
Public Sub AddPropertyGetter (
name As String,
getter As V8FastHostPropertyGetter(Of TObject)
)
public:
void AddPropertyGetter(
String^ name,
V8FastHostPropertyGetter<TObject>^ getter
)
member AddPropertyGetter :
name : string *
getter : V8FastHostPropertyGetter<'TObject> -> unit
Parameters
- name String
- The property name.
- getter V8FastHostPropertyGetter<TObject>
- A callback that gets the property value.
Remarks
Properties configured by this method are not enumerable and cannot be assigned or
deleted.
See Also