Language

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

定義

オブジェクトのプロパティ値のセットを指定 Object を作成します。

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

形式コンテキストを提供する ITypeDescriptorContext 。

propertyValues
IDictionary

新しいプロパティ値の IDictionary 。

戻り値

指定したObjectを表すIDictionary。オブジェクトを作成できない場合はnull。

例外

propertyValues は nullです。

注釈

context パラメーターを使用すると、このコンバーターの呼び出し元の環境に関する追加情報を抽出できます。 これは nullできるため、常に確認してください。 また、コンテキスト オブジェクトのプロパティは、 nullを返すことができます。

適用対象

関連項目