Method AddObject
- Namespace
- Alternet.Common.TypeScript.HostObjects
- Assembly
- Alternet.Common.TypeScript.v9.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
name
stringName of the new
HostItem
object.object
objectObject to be added to the
HostItem
collection.options
HostItemOptionsHostItemOptions
of the newHostItem
.
Returns
- HostItemsConfiguration
HostItemsConfiguration with updated Items collection.