PointConverter.CreateInstance(ITypeDescriptorContext, IDictionary) Methode

Definition

Erstellt eine Instanz dieses Typs, wenn eine Gruppe von Eigenschaftswerten für das Objekt vorhanden ist.

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

Parameter

context
ITypeDescriptorContext

Ein Typdeskriptor, mit dem zusätzlicher Kontext bereitgestellt werden kann.

propertyValues
IDictionary

Ein Wörterbuch mit neuen Eigenschaftswerten. Das Wörterbuch enthält für jede von GetProperties(ITypeDescriptorContext, Object, Attribute[]) zurückgegebene Eigenschaft jeweils ein Name-Wert-Paar.

Gibt zurück

Das neu erstellte Objekt oder null, wenn das Objekt nicht erstellt werden konnte. Die Standardimplementierung gibt null zurück.

Hinweise

CreateInstance ist nützlich für Objekte, die unveränderlich sind, aber dennoch veränderliche Eigenschaften bereitstellen möchten.

Gilt für: