Share via


DesignerSerializationManager.IDesignerSerializationManager.CreateInstance 메서드

정의

 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

매개 변수

type
Type

만들 데이터 형식입니다.

arguments
ICollection

이 형식에 대한 생성자에 전달할 인수입니다.

name
String

개체의 이름입니다. 이 이름은 나중에 GetInstance(String)를 통해 개체에 액세스하는 데 사용할 수 있습니다. null이 전달되면 개체는 계속 만들어지지만 이름을 통해 개체에 액세스할 수는 없습니다.

addToContainer
Boolean

이 개체를 디자인 컨테이너에 추가하려면 true입니다. 개체에서는 영향을 줄 수 있도록 이에 대한 IComponent를 구현해야 합니다.

반환

새로 만들어진 개체 인스턴스입니다.

구현

적용 대상