- type
- The data type to create.
- arguments
- The arguments to pass to the constructor for this type.
- name
- The name of the object. This name can be used to access the object later through IDesignerSerializationManager.GetInstance(string). If null is passed, the object is still created but cannot be accessed by name.
- addToContainer
- If true, this object is added to the design container. The object must implement System.ComponentModel.IComponent for this to have any effect.
The newly created object instance.
Objects that implement System.ComponentModel.IComponent are added to the design-time container if the addToContainer parameter is true.