Aracılığıyla paylaş


RectangleConverter.CreateInstance(ITypeDescriptorContext, IDictionary) Yöntem

Tanım

Nesne için bir özellik değerleri kümesi verilip bu türün bir örneğini oluşturur. Bu, sabit olan ancak yine de değiştirilebilir özellikler sağlamak isteyen nesneler için kullanışlıdır.

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

Aracılığıyla ITypeDescriptorContext ek bağlam sağlanabilen bir.

propertyValues
IDictionary

Yeni özellik değerlerinin sözlüğü. Sözlük, yöntemine yapılan çağrıdan döndürülen her özellik için bir dizi ad-değer çifti GetProperties(ITypeDescriptorContext, Object, Attribute[]) içerir.

Döndürülenler

Yeni oluşturulan nesne veya null nesne oluşturulamadıysa. Varsayılan uygulama döndürür null.

Şunlara uygulanır