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