ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ExtendedHostFunctions Class
ExtendedHostFunctions Methods
type Method
type(Type) Method
type(String, Object[]) Method
type(String, String, Object[]) Method

# ExtendedHostFunctionstype(Type) Method

Imports the host type for the specified Type.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public 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

Object
The 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

#### Reference

ExtendedHostFunctions Class
type Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft