ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8.FastProxy
V8FastHostFunction Class
V8FastHostFunction Methods
VerifyConstructorCall Method
VerifyFunctionCall Method

# V8FastHostFunctionVerifyConstructorCall Method

Verifies that a fast host function was invoked as a constructor and not as a function.
Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public static void VerifyConstructorCall(
    	bool asConstructor
    )

    Public Shared Sub VerifyConstructorCall (
    	asConstructor As Boolean
    )

    public:
    static void VerifyConstructorCall(
    	bool asConstructor
    )

    static member VerifyConstructorCall :
            asConstructor : bool -> unit

#### Parameters

asConstructor Boolean
  True if the function was invoked as a constructor, false otherwise.

Remarks
This is a simple utility method that checks asConstructor and throws an exception if it is false. It is intended for use within fast host function invocation callbacks.
See Also

#### Reference

V8FastHostFunction Class
Microsoft.ClearScript.V8.FastProxy Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft