ExtendedHostFunctionstype(Type) Method |
Imports the host type for the specified
Type.
Namespace: Microsoft.ClearScriptAssembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.4.3
Syntaxpublic Object type(
Type type
)
Public Function type (
type As Type
) As Object
public:
Object^ type(
Type^ type
)
member type :
type : Type -> Object
Parameters
- type Type
- The Type that specifies the host type to import.
Return Value
ObjectThe imported host type.
Remarks
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