Method AddType
- Namespace
- Alternet.Common.TypeScript.HostObjects
- Assembly
- Alternet.Common.TypeScript.v10.dll
AddType(string, Type, HostItemOptions)
Updates current HostItemsConfiguration by adding new element with specified parameters.
public HostItemsConfiguration AddType(string name, Type type, HostItemOptions options = HostItemOptions.None)
Parameters
namestringName of the new
HostItemobject.typeTypeType to be added to the
HostItemcollection.optionsHostItemOptionsHostItemOptionsof theHostItem.
Returns
- HostItemsConfiguration
HostItemsConfiguration with updated Items collection.