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

# V8FastHostDynamicObject TObject Class

Provides an implementation of IV8FastHostObject with a shared configuration and support for dynamic properties.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScript.V8.FastProxyV8FastHostObject TObject
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 V8FastHostDynamicObject<TObject> : V8FastHostObject<TObject>,
    	IV8FastHostDynamicProperties
    where TObject : V8FastHostDynamicObject<TObject>

    Public MustInherit Class V8FastHostDynamicObject(Of TObject As V8FastHostDynamicObject(Of TObject))
    	Inherits V8FastHostObject(Of TObject)
    	Implements IV8FastHostDynamicProperties

    generic<typename TObject>
    where TObject : V8FastHostDynamicObject<TObject>
    public ref class V8FastHostDynamicObject abstract : public V8FastHostObject<TObject>,
    	IV8FastHostDynamicProperties

    [<AbstractClassAttribute>]
    type V8FastHostDynamicObject<'TObject when 'TObject : V8FastHostDynamicObject<'TObject>> =
        class
            inherit V8FastHostObject<'TObject>
            interface IV8FastHostDynamicProperties
        end

#### Type Parameters

TObject
  The fast host object type.

The V8FastHostDynamicObjectTObject type exposes the following members.

Constructors

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

Top
Properties

| Name | Description
--- | --- | ---
| DynamicPropertyIndices | Enumerates the indices of all existing indexed dynamic properties.
| DynamicPropertyNames | Enumerates the names of all existing named dynamic properties.

Top
Methods

| Name | Description
--- | --- | ---
| Configure | Prepares the shared configuration associated with TObject.
| DeleteDynamicProperty(Int32) | Deletes an indexed dynamic property.
| DeleteDynamicProperty(String) | Deletes a named dynamic property.
| 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)
| GetDynamicProperty(Int32, V8FastResult) | Gets the value of an indexed dynamic property.
| GetDynamicProperty(String, V8FastResult) | Gets the value of a named dynamic property.
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| HasDynamicProperty(Int32) | Determines whether a dynamic property exists at the specified index.
| HasDynamicProperty(String) | Determines whether a dynamic property with the specified name exists.
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| SetDynamicProperty(Int32, V8FastArg) | Sets the value of an indexed dynamic property.
| SetDynamicProperty(String, V8FastArg) | Sets the value of a named dynamic property.
| 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