Click or drag to resize

ExtendedHostFunctionstype(Type) Method

Imports the host type for the specified Type.

Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.5
public Object type(
	Type type


type  Type
The Type that specifies the host type to import.

Return Value

The imported host type.

Host types are imported in the form of objects whose properties and methods are bound to the host type's static members and nested types. If type refers to a generic type, the corresponding object will be invocable with type arguments to yield a specific type.

For more information about the mapping between host members and script-callable properties and methods, see AddHostObject.

See Also