ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ExtendedHostFunctions Class
ExtendedHostFunctions Methods
arrType<T> Method
comType Method
lib Method
newComObj Method
type Method
typeLibEnums<T> Method

# ExtendedHostFunctions Methods

The ExtendedHostFunctions type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| arrTypeT | Imports the host array type for the specified element type.
| asTypeT | Casts an object to the specified host type, returning null if the cast fails. (Inherited from HostFunctions)
| castT | Casts an object to the specified host type. (Inherited from HostFunctions)
| comType | Imports a COM/ActiveX type.
| delT | Creates a delegate that invokes a script function. (Inherited from HostFunctions)
| 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)
| flagsT | Creates a strongly typed flag set. (Inherited from HostFunctions)
| funcT(Int32, Object) | Creates a delegate that invokes a script function and returns a value of the specified type. (Inherited from HostFunctions)
| getElement | Gets the value of an element in a dynamic host object that implements IDynamicMetaObjectProvider. (Inherited from HostFunctions)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| getProperty(IDynamicMetaObjectProvider, String) | Gets the value of a property in a dynamic host object that implements IDynamicMetaObjectProvider. (Inherited from HostFunctions)
| getProperty(IPropertyBag, String) | Gets the value of a property in a dynamic host object that implements IPropertyBag. (Inherited from HostFunctions)
| GetType | Gets the Type of the current instance. (Inherited from Object)
| isNull | Determines whether the specified value is null. (Inherited from HostFunctions)
| isTypeT | Determines whether an object is compatible with the specified host type. (Inherited from HostFunctions)
| isTypeObj(Object) | Determines whether an object is a host type. This version is invoked if the specified object cannot be used as a type argument. (Inherited from HostFunctions)
| isTypeObjT | Determines whether an object is a host type. This version is invoked if the specified object can be used as a type argument. (Inherited from HostFunctions)
| lib(String) | Imports types from one or more host assemblies.
| lib(HostTypeCollection, String) | Imports types from one or more host assemblies and merges them with an existing host type collection.
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| newArrT(Int32) | Creates a host array with the specified element type. (Inherited from HostFunctions)
| newComObj | Creates a COM/ActiveX object of the specified type.
| newObj | Creates an empty host object. (Inherited from HostFunctions)
| newObj(IDynamicMetaObjectProvider, Object) | Performs dynamic instantiation. (Inherited from HostFunctions)
| newObj(Object, Object) | Creates a host object of the specified type. This version is invoked if the specified type cannot be used as a type argument. (Inherited from HostFunctions)
| newObjT(Object) | Creates a host object of the specified type. This version is invoked if the specified type can be used as a type argument. (Inherited from HostFunctions)
| newVarT | Creates a host variable of the specified type. (Inherited from HostFunctions)
| proc | Creates a delegate that invokes a script function and returns no value. (Inherited from HostFunctions)
| removeElement | Removes an element from a dynamic host object that implements IDynamicMetaObjectProvider. (Inherited from HostFunctions)
| removeProperty(IDynamicMetaObjectProvider, String) | Removes a property from a dynamic host object that implements IDynamicMetaObjectProvider. (Inherited from HostFunctions)
| removeProperty(IPropertyBag, String) | Removes a property from a dynamic host object that implements IPropertyBag. (Inherited from HostFunctions)
| setElement | Sets an element value in a dynamic host object that implements IDynamicMetaObjectProvider. (Inherited from HostFunctions)
| setProperty(IDynamicMetaObjectProvider, String, Object) | Sets a property value in a dynamic host object that implements IDynamicMetaObjectProvider. (Inherited from HostFunctions)
| setProperty(IPropertyBag, String, Object) | Sets a property value in a dynamic host object that implements IPropertyBag. (Inherited from HostFunctions)
| toByte | Converts the specified value to a strongly typed Byte instance. (Inherited from HostFunctions)
| toChar | Converts the specified value to a strongly typed Char instance. (Inherited from HostFunctions)
| toDecimal | Converts the specified value to a strongly typed Decimal instance. (Inherited from HostFunctions)
| toDouble | Converts the specified value to a strongly typed Double instance. (Inherited from HostFunctions)
| toInt16 | Converts the specified value to a strongly typed Int16 instance. (Inherited from HostFunctions)
| toInt32 | Converts the specified value to a strongly typed Int32 instance. (Inherited from HostFunctions)
| toInt64 | Converts the specified value to a strongly typed Int64 instance. (Inherited from HostFunctions)
| toSByte | Converts the specified value to a strongly typed SByte instance. (Inherited from HostFunctions)
| toSingle | Converts the specified value to a strongly typed Single instance. (Inherited from HostFunctions)
| toStaticType | Casts a dynamic host object to its static type. (Inherited from HostFunctions)
| ToString | Returns a string that represents the current object. (Inherited from Object)
| toUInt16 | Converts the specified value to a strongly typed UInt16 instance. (Inherited from HostFunctions)
| toUInt32 | Converts the specified value to a strongly typed UInt32 instance. (Inherited from HostFunctions)
| toUInt64 | Converts the specified value to a strongly typed UInt64 instance. (Inherited from HostFunctions)
| tryCatch | Allows script code to handle host exceptions. (Inherited from HostFunctions)
| type(Type) | Imports the host type for the specified Type.
| type(String, Object) | Imports a host type by name.
| type(String, String, Object) | Imports a host type by name from the specified assembly.
| typeLibEnumsT | Imports enumerations defined within or referenced from a COM/ActiveX type library.
| typeOf(Object) | Gets the Type for the specified host type. This version is invoked if the specified object cannot be used as a type argument. (Inherited from HostFunctions)
| typeOfT | Gets the Type for the specified host type. This version is invoked if the specified object can be used as a type argument. (Inherited from HostFunctions)

Top
See Also

#### Reference

ExtendedHostFunctions Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft