V8FastHostObjectConfiguration<TObject>.AddMethodGetter(String, V8FastHostObjectConfigurator<V8FastHostMethod<TObject>>, V8FastHostMethodInvoker<TObject>) Method |
Adds a getter for a method with the specified configuration callback.
Namespace: Microsoft.ClearScript.V8.FastProxyAssembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntaxpublic void AddMethodGetter(
string name,
V8FastHostObjectConfigurator<V8FastHostMethod<TObject>> configurator,
V8FastHostMethodInvoker<TObject> invoker
)
Public Sub AddMethodGetter (
name As String,
configurator As V8FastHostObjectConfigurator(Of V8FastHostMethod(Of TObject)),
invoker As V8FastHostMethodInvoker(Of TObject)
)
public:
void AddMethodGetter(
String^ name,
V8FastHostObjectConfigurator<V8FastHostMethod<TObject>^>^ configurator,
V8FastHostMethodInvoker<TObject>^ invoker
)
member AddMethodGetter :
name : string *
configurator : V8FastHostObjectConfigurator<V8FastHostMethod<'TObject>> *
invoker : V8FastHostMethodInvoker<'TObject> -> unit
Parameters
- name String
- The method name.
- configurator V8FastHostObjectConfigurator<V8FastHostMethod<TObject>>
- A callback for preparing the method's configuration.
- invoker V8FastHostMethodInvoker<TObject>
- The method invocation callback.
Remarks
Properties configured by this method are not enumerable and cannot be assigned or
deleted.
See Also