ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
Extensions Class
Extensions Methods
ToRestrictedHostObject Method
ToRestrictedHostObject<T>(T) Method
ToRestrictedHostObject(Object, Type) Method
ToRestrictedHostObject<T>(T, ScriptEngine) Method
ToRestrictedHostObject(Object, Type, ScriptEngine) Method

# ExtensionsToRestrictedHostObject Method

Overload List

| Name | Description
--- | --- | ---
| 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