ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8.FastProxy
V8FastHostObjectConfiguration<TObject> Class
V8FastHostObjectConfiguration<TObject> Methods
AddMethodGetter Method
AddMethodGetter(String, V8FastHostMethodInvoker<TObject>) Method
AddMethodGetter(String, V8FastHostObjectConfigurator<V8FastHostMethod<TObject>>, V8FastHostMethodInvoker<TObject>) Method
AddMethodGetter(String, Int32, V8FastHostMethodInvoker<TObject>) Method
AddMethodGetter(String, Int32, V8FastHostObjectConfigurator<V8FastHostMethod<TObject>>, V8FastHostMethodInvoker<TObject>) Method

# V8FastHostObjectConfiguration TObject AddMethodGetter(String, V8FastHostObjectConfiguratorV8FastHostMethod TObject, V8FastHostMethodInvoker TObject) Method

Adds a getter for a method with the specified configuration callback.
Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public 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

#### Reference

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

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft