DesignerSerializationManager.IDesignerSerializationManager.CreateInstance メソッド

定義

CreateInstance(Type, ICollection, String, Boolean) メソッドを実装します。

 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 を実装していることが必要です。

戻り値

新しく作成したオブジェクト インスタンス。

実装

適用対象