ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
HostTypeCollection Class
HostTypeCollection Methods
AddType Method
AddType(Type) Method
AddType(String, Type[]) Method
AddType(String, String, Type[]) Method

# HostTypeCollectionAddType(String, String, Type) Method

Adds a type to a host type collection. The type is specified by type name and assembly name.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public void AddType(
    	string typeName,
    	string assemblyName,
    	params Type[] typeArgs
    )

    Public Sub AddType (
    	typeName As String,
    	assemblyName As String,
    	ParamArray typeArgs As Type()
    )

    public:
    void AddType(
    	String^ typeName,
    	String^ assemblyName,
    	... array<Type^>^ typeArgs
    )

    member AddType :
            typeName : string *
            assemblyName : string *
            typeArgs : Type[] -> unit

#### Parameters

typeName String
  The fully qualified name of the type to add.
assemblyName String
  The name of the assembly that contains the type to add.
typeArgs Type
  Optional generic type arguments.

See Also

#### Reference

HostTypeCollection Class
AddType Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft