WorkflowMarkupSerializationManager.IDesignerSerializationManager.CreateInstance(Type, ICollection, String, Boolean) Método

Definición

Crea una instancia del tipo especificado y la agrega a la colección de instancias designadas.Creates an instance of the specified type and adds it to a collection of named instances.

 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);
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

Parámetros

type
Type

Type que se va a crear.The Type to create.

arguments
ICollection

ICollection que contiene los argumentos para type.An ICollection that contains the arguments for type.

name
String

El nombre del objeto.The name of the object. Se puede usar este nombre para tener acceso al objeto más adelante con IDesignerSerializationManager.GetInstance(String).This name can be used to access the object later using IDesignerSerializationManager.GetInstance(String). Si se pasa una referencia nula (Nothing en Visual Basic), el objeto se crea pero no se puede tener acceso a él por el nombre.If a null reference (Nothing in Visual Basic) is passed, the object is still created but cannot be accessed by name.

addToContainer
Boolean

Es true para agregar este objeto al contenedor de diseño; de lo contrario, es false.true to add the object to the design container; otherwise, false.

Devoluciones

El objeto recién creado.The newly created object.

Implementaciones

Comentarios

Si addToContainer se establece en true, el objeto debe implementar IComponent para que esto tenga algún efecto.If addToContainer is set to true, the object must implement IComponent for this to have any effect.

Se aplica a