ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
HostTypeCollection Class
HostTypeCollection Methods
AddAssembly Method
AddType Method
GetNamespaceNode Method

# HostTypeCollection Methods

The HostTypeCollection type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| Add | Adds a property to the PropertyBag. (Inherited from PropertyBag)
| AddAssembly(Assembly) | Adds types from an assembly to a host type collection.
| AddAssembly(String) | Adds types from an assembly to a host type collection. The assembly is specified by name.
| AddAssembly(Assembly, PredicateType) | Adds selected types from an assembly to a host type collection.
| AddAssembly(String, PredicateType) | Adds selected types from an assembly to a host type collection. The assembly is specified by name.
| AddType(Type) | Adds a type to a host type collection.
| AddType(String, Type) | Adds a type to a host type collection. The type is specified by name.
| AddType(String, String, Type) | Adds a type to a host type collection. The type is specified by type name and assembly name.
| ClearNoCheck | Removes all properties without checking whether the PropertyBag is read-only. (Inherited from PropertyBag)
| ContainsKey | Determines whether the PropertyBag contains a property with the specified name. (Inherited from PropertyBag)
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object)
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
| GetHashCode | Serves as the default hash function. (Inherited from Object)
| GetNamespaceNode | Locates a namespace within a host type collection.
| GetType | Gets the Type of the current instance. (Inherited from Object)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
| Remove | Removes a property from the PropertyBag. (Inherited from PropertyBag)
| RemovePropertyNoCheck | Removes a property without checking whether the PropertyBag is read-only. (Inherited from PropertyBag)
| SetPropertyNoCheck | Sets a property value without checking whether the PropertyBag is read-only. (Inherited from PropertyBag)
| ToString | Returns a string that represents the current object. (Inherited from Object)
| TryGetValue | Looks up a property value in the PropertyBag. (Inherited from PropertyBag)

Top
See Also

#### Reference

HostTypeCollection Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft