LinkArea.LinkAreaConverter.CreateInstance メソッド

定義

オブジェクトのプロパティ値を設定して、この型のインスタンスを作成します。 これは、オブジェクトの変更はできないが、変更可能なプロパティを提供する場合に便利です。

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

追加のコンテキストを提供するための型記述子。

propertyValues
IDictionary

新しいプロパティ値のディクショナリ。 ディクショナリは、GetProperties(ITypeDescriptorContext, Object, Attribute[]) から返された各プロパティに 1 つずつある、名前と値の一連の組み合わせを格納しています。

戻り値

Object

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

適用対象