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, Int32, V8FastHostMethodInvoker TObject) Method

Adds a getter for a method with the specified required argument count.
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,
    	int requiredArgCount,
    	V8FastHostMethodInvoker<TObject> invoker
    )

    Public Sub AddMethodGetter (
    	name As String,
    	requiredArgCount As Integer,
    	invoker As V8FastHostMethodInvoker(Of TObject)
    )

    public:
    void AddMethodGetter(
    	String^ name,
    	int requiredArgCount,
    	V8FastHostMethodInvoker<TObject>^ invoker
    )

    member AddMethodGetter :
            name : string *
            requiredArgCount : int *
            invoker : V8FastHostMethodInvoker<'TObject> -> unit

#### Parameters

name String
  The method name.
requiredArgCount Int32
  The required argument count for the method.
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