ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8.FastProxy
V8FastHostObject<TObject> Class
V8FastHostObject<TObject> Constructor
V8FastHostObject<TObject> Methods

# V8FastHostObject TObject Class

Provides an implementation of IV8FastHostObject with a shared configuration.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScript.V8.FastProxyV8FastHostObjectTObject
Microsoft.ClearScript.V8.FastProxyV8FastHostDynamicObjectTObject
Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public abstract class V8FastHostObject<TObject> : IV8FastHostObject
    where TObject : V8FastHostObject<TObject>

    Public MustInherit Class V8FastHostObject(Of TObject As V8FastHostObject(Of TObject))
    	Implements IV8FastHostObject

    generic<typename TObject>
    where TObject : V8FastHostObject<TObject>
    public ref class V8FastHostObject abstract : IV8FastHostObject

    [<AbstractClassAttribute>]
    type V8FastHostObject<'TObject when 'TObject : V8FastHostObject<'TObject>> =
        class
            interface IV8FastHostObject
        end

#### Type Parameters

TObject
  The fast host object type.

The V8FastHostObjectTObject type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| V8FastHostObjectTObject | Initializes a new V8FastHostObjectTObject instance.

Top
Methods

| Name | Description
--- | --- | ---
| Configure | Prepares the shared configuration associated with TObject.
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| ToString | Returns a string that represents the current object. (Inherited from Object)

Top
Remarks
This class is a generic base for fast host object classes derived from it via the Curiously Recurring Template Pattern (CRTP). It uses a shared instance of V8FastHostObjectConfigurationTObject for each unique type argument. Derived classes are therefore advised to use a static constructor to invoke the Configure(V8FastHostObjectConfiguratorTObject) method.
See Also

#### Reference

Microsoft.ClearScript.V8.FastProxy Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft