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

例外

propertyValuesnullです。

注釈

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

適用対象

こちらもご覧ください