TemplateKeyConverter.ConvertFrom Methode

Definition

Versucht, das angegebene Objekt (Zeichenfolge) in eine Instanz von TemplateKey zu konvertieren.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ source);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object source);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, source As Object) As Object

Parameter

context
ITypeDescriptorContext

Ein Formatkontext, der Informationen über die Umgebung enthält, in der dieser Konverter aufgerufen wird.

culture
CultureInfo

Kulturspezifische Informationen.

source
Object

Das zu konvertierende Objekt.

Gibt zurück

Löst immer eine Ausnahme aus.

Ausnahmen

source kann nicht konvertiert werden.

Hinweise

Weitere Informationen finden Sie unter Hinweise in TemplateKeyConverter.

Gilt für: