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