Click or drag to resize

ExtensionsToRestrictedHostObjectT Method (T)

Converts an object to a host object with the specified type restriction, for use with script code currently running on the calling thread.

Namespace:  Microsoft.ClearScript
Assembly:  ClearScript.Core (in ClearScript.Core.dll) Version: 7.3.1
Syntax
public static Object ToRestrictedHostObject<T>(
	this T target
)

Parameters

target
Type: T
The object to convert to a host object for use with script code.

Type Parameters

T
The type whose members are to be made accessible from script code.

Return Value

Type: Object
A host object with the specified type restriction.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also