Edit

Share via


DesignerSerializationManager.IDesignerSerializationManager.CreateInstance Method

Definition

 virtual System::Object ^ System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type ^ type, System::Collections::ICollection ^ arguments, System::String ^ name, bool addToContainer) = System::ComponentModel::Design::Serialization::IDesignerSerializationManager::CreateInstance;
object IDesignerSerializationManager.CreateInstance (Type type, System.Collections.ICollection arguments, string name, bool addToContainer);
object IDesignerSerializationManager.CreateInstance (Type type, System.Collections.ICollection? arguments, string? name, bool addToContainer);
abstract member System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance : Type * System.Collections.ICollection * string * bool -> obj
override this.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance : Type * System.Collections.ICollection * string * bool -> obj
Function CreateInstance (type As Type, arguments As ICollection, name As String, addToContainer As Boolean) As Object Implements IDesignerSerializationManager.CreateInstance

Parameters

type
Type

The data type to create.

arguments
ICollection

The arguments to pass to the constructor for this type.

name
String

The name of the object. This name can be used to access the object later through GetInstance(String). If null is passed, the object is still created but cannot be accessed by name.

addToContainer
Boolean

true to add this object to the design container. The object must implement IComponent for this to have any effect.

Returns

The newly created object instance.

Implements

Applies to