Method AddAssembly
- Namespace
- Alternet.Common.TypeScript.HostObjects
- Assembly
- Alternet.Common.TypeScript.v9.dll
AddAssembly(string, string, HostItemOptions, string[])
Updates current HostItemsConfiguration
by adding new element with specified parameters.
public HostItemsConfiguration AddAssembly(string name, string assemblyName, HostItemOptions options = HostItemOptions.GlobalMembers, string[] searchPaths = null)
Parameters
name
stringName of the new
HostItem
object.assemblyName
stringAssembly name to be added to the
HostItem
collection.options
HostItemOptionsHostItemOptions
of theHostItem
.searchPaths
string[]List of paths to locate specified assemblies.
Returns
- HostItemsConfiguration
HostItemsConfiguration with updated Items collection.
AddAssembly(string, Assembly, HostItemOptions)
Updates current HostItemsConfiguration
by adding new element with specified parameters.
public HostItemsConfiguration AddAssembly(string name, Assembly assembly, HostItemOptions options = HostItemOptions.GlobalMembers)
Parameters
name
stringName of the new
HostItem
object.assembly
AssemblyAssembly object to be added to the
HostItem
collection.options
HostItemOptionsHostItemOptions
of theHostItem
.
Returns
- HostItemsConfiguration
HostItemsConfiguration with updated Items collection.