Method AddAssembly
- Namespace
- Alternet.Common.TypeScript.HostObjects
- Assembly
- Alternet.Common.TypeScript.v10.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
namestringName of the new
HostItemobject.assemblyNamestringAssembly name to be added to the
HostItemcollection.optionsHostItemOptionsHostItemOptionsof theHostItem.searchPathsstring[]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
namestringName of the new
HostItemobject.assemblyAssemblyAssembly object to be added to the
HostItemcollection.optionsHostItemOptionsHostItemOptionsof theHostItem.
Returns
- HostItemsConfiguration
HostItemsConfiguration with updated Items collection.