ListBindingConverter.CreateInstance Metoda

Definicja

Tworzy wystąpienie typu skojarzonego TypeConverter z określonym kontekstem przy użyciu określonego kontekstu, biorąc pod uwagę zestaw wartości właściwości dla obiektu.

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

Parametry

context
ITypeDescriptorContext

Element ITypeDescriptorContext , który udostępnia kontekst formatu.

propertyValues
IDictionary

Wartości IDictionary nowych właściwości.

Zwraca

Element Object reprezentujący daną IDictionarywartość lub null jeśli nie można utworzyć obiektu. Ta metoda zawsze zwraca wartość null.

Dotyczy

Zobacz też