Managing VirtualApp Children
You can add virtual machines and virtual applications to your virtual application as direct or linked children. See Direct and Linked Children. You use different methods for adding or removing direct or linked children, as follows:
Direct children. Use one of the following methods:
CreateChildVMTask adds a new virtual machine.
CreateVApp adds a new virtual application.
MoveIntoResourcePool adds or removes an existing virtual machine or virtual application
Linked children. Use UpdateLinkedChildren to add or remove virtual machines or virtual applications.
You can call the UpdateVappConfig method to specify how each virtual machine fits into the virtual application.
One of the strings in the VAppAutoStartAction enumeration.
Specifies the start order for this entity. Entities are started from lower numbers to higher-numbers and reverse on shutdown. Multiple entities with the same start order are started in parallel and the order is unspecified. This value must be 0 or higher.
Defines the stop action for the entity. Can be set to none, powerOff, guestShutdown, or suspend. If set to none, then the entity does not participate in auto-stop.