NullableConverter.CreateInstance(ITypeDescriptorContext, IDictionary) Yöntem

Tanım

Nesne için bir özellik değerleri kümesi verildiğinde, belirtilen bağlamı kullanarak bu TypeConverter ilişkili olduğu türün bir örneğini oluşturur.

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

Parametreler

context
ITypeDescriptorContext

Biçim ITypeDescriptorContext bağlamı sağlayan.

propertyValues
IDictionary

Yeni özellik değerlerinden biri IDictionary .

Döndürülenler

Object Verilen IDictionaryöğesini temsil eden veya null nesne oluşturulamıyorsa. Bu yöntem her zaman döndürür null.

Şunlara uygulanır

Ayrıca bkz.