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

# V8FastHostObjectConfiguration TObject Class

Represents a fast host object configuration.
Inheritance Hierarchy
SystemObject
Microsoft.ClearScript.V8.FastProxyV8FastHostObjectConfigurationTObject
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 V8FastHostObjectConfiguration<TObject>
    where TObject : IV8FastHostObject

    Public MustInherit Class V8FastHostObjectConfiguration(Of TObject As IV8FastHostObject)

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

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

#### Type Parameters

TObject
  The fast host object type.

The V8FastHostObjectConfigurationTObject type exposes the following members.

Constructors

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

Top
Properties

| Name | Description
--- | --- | ---
| EnumerateIndexedProperties | Controls whether indexed properties are enumerable.

Top
Methods

| Name | Description
--- | --- | ---
| AddMethodGetter(String, V8FastHostMethodInvokerTObject) | Adds a getter for a method.
| AddMethodGetter(String, V8FastHostObjectConfiguratorV8FastHostMethodTObject, V8FastHostMethodInvokerTObject) | Adds a getter for a method with the specified configuration callback.
| AddMethodGetter(String, Int32, V8FastHostMethodInvokerTObject) | Adds a getter for a method with the specified required argument count.
| AddMethodGetter(String, Int32, V8FastHostObjectConfiguratorV8FastHostMethodTObject, V8FastHostMethodInvokerTObject) | Adds a getter for a method with the specified required argument count and configuration callback.
| AddPropertyAccessors(String, V8FastHostPropertyGetterTObject, V8FastHostPropertySetterTObject) | Adds accessors for a property.
| AddPropertyAccessors(String, V8FastHostPropertyGetterTObject, V8FastHostPropertySetterTObject, V8FastHostPropertyFlags) | Adds accessors for a property with the specified attributes.
| AddPropertyAccessorsTField(String, V8FastHostFieldAccessorTObject, TField) | Adds accessors for a field-backed property.
| AddPropertyAccessorsTField(String, V8FastHostFieldAccessorTObject, TField, V8FastHostPropertyFlags) | Adds accessors for a field-backed property with the specified attributes.
| AddPropertyGetter(String, V8FastHostPropertyGetterTObject) | Adds a getter for a read-only property.
| AddPropertyGetter(String, V8FastHostPropertyGetterTObject, V8FastHostPropertyFlags) | Adds a getter for a read-only property with the specified attributes.
| AddPropertyGetterTField(String, V8FastHostFieldAccessorTObject, TField) | Adds a getter for a field-backed read-only property.
| AddPropertyGetterTField(String, V8FastHostFieldAccessorTObject, TField, V8FastHostPropertyFlags) | Adds a getter for a field-backed read-only property with the specified attributes.
| 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)
| SetAsyncEnumeratorFactory(FuncTObject, IV8FastAsyncEnumerator) | Sets a callback that creates an asynchronous enumerator for a TObject instance in IV8FastAsyncEnumerator form.
| SetAsyncEnumeratorFactoryTItem(FuncTObject, IAsyncEnumeratorTItem) | Sets a callback that creates an asynchronous enumerator for a TObject instance in IAsyncEnumeratorT form.
| SetDynamicPropertiesGetter | Sets a callback that gets the dynamic properties of a TObject instance.
| SetEnumeratorFactory(FuncTObject, IV8FastEnumerator) | Sets a callback that creates an enumerator for a TObject instance in IV8FastEnumerator form.
| SetEnumeratorFactory(FuncTObject, IEnumerator) | Sets a callback that creates an enumerator for a TObject instance in IEnumerator form.
| SetEnumeratorFactoryTItem(FuncTObject, IEnumeratorTItem) | Sets a callback that creates an enumerator for a TObject instance in IEnumeratorT form.
| ToString | Returns a string that represents the current object. (Inherited from Object)

Top
Remarks
This class provides a way to configure the scriptable capabilities of a fast host object or type. It is not a required part of the interface between V8 and fast host objects, but it is used extensively by ClearScript's fast host object implementation infrastructure.
See Also

#### Reference

Microsoft.ClearScript.V8.FastProxy Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft