SizeConverter.CreateInstance(ITypeDescriptorContext, IDictionary) メソッド

定義

この型のオブジェクトそのオブジェクトのプロパティ値の指定のセットを使用して作成します。 これは、変更できるプロパティを持つ変更できない、オブジェクトを作成する場合に便利です。

public:
 override System::Object ^ CreateInstance(System::ComponentModel::ITypeDescriptorContext ^ context, System::Collections::IDictionary ^ propertyValues);
public override object CreateInstance (System.ComponentModel.ITypeDescriptorContext context, System.Collections.IDictionary propertyValues);
public override object CreateInstance (System.ComponentModel.ITypeDescriptorContext? context, System.Collections.IDictionary propertyValues);
override this.CreateInstance : System.ComponentModel.ITypeDescriptorContext * System.Collections.IDictionary -> obj
Public Overrides Function CreateInstance (context As ITypeDescriptorContext, propertyValues As IDictionary) As Object

パラメーター

context
ITypeDescriptorContext

追加のコンテキストを指定できる場合に使用する TypeDescriptor

propertyValues
IDictionary

新しいプロパティ値のディクショナリ。 このディクショナリには、名前と値の一連のペアが格納されています。各プロパティに対する名前と値のペアは、GetProperties(ITypeDescriptorContext, Object, Attribute[]) メソッドから返されます。

戻り値

Object

新しく作成したオブジェクト。オブジェクトを作成できなかった場合は null。 既定の実装では、null が返されます。

適用対象