ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
Extensions Class
Extensions Methods
ToHostType Method
ToRestrictedHostObject Method

# Extensions Methods

The Extensions type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| ToHostType(Type) | Converts a type to a host type for use with script code currently running on the calling thread.
| ToHostType(Type, ScriptEngine) | Converts a type to a host type for use with script code running in the specified script engine.
| ToRestrictedHostObject(Object, Type) | Converts an object to a host object with a type restriction specified as a Type instance, for use with script code currently running on the calling thread.
| ToRestrictedHostObject(Object, Type, ScriptEngine) | Converts an object to a host object with a type restriction specified as a Type instance, for use with script code running in the specified script engine.
| ToRestrictedHostObjectT(T) | Converts an object to a host object with the specified type restriction, for use with script code currently running on the calling thread.
| ToRestrictedHostObjectT(T, ScriptEngine) | Converts an object to a host object with the specified type restriction, for use with script code running in the specified script engine.

Top
See Also

#### Reference

Extensions Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft