ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
HostTypeCollection Class
HostTypeCollection Methods
AddAssembly Method
AddAssembly(Assembly) Method
AddAssembly(String) Method
AddAssembly(Assembly, Predicate<Type>) Method
AddAssembly(String, Predicate<Type>) Method

# HostTypeCollectionAddAssembly(String, PredicateType) Method

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

    public void AddAssembly(
    	string assemblyName,
    	Predicate<Type> filter
    )

    Public Sub AddAssembly (
    	assemblyName As String,
    	filter As Predicate(Of Type)
    )

    public:
    void AddAssembly(
    	String^ assemblyName,
    	Predicate<Type^>^ filter
    )

    member AddAssembly :
            assemblyName : string *
            filter : Predicate<Type> -> unit

#### Parameters

assemblyName String
  The name of the assembly that contains the types to add.
filter Predicate Type
  A filter for selecting the types to add.

See Also

#### Reference

HostTypeCollection Class
AddAssembly Overload
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft