Språk

TemplateKeyConverter.ConvertFrom Metod

Definition

Försöker konvertera det angivna objektet (strängen) till en TemplateKey.

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

Parametrar

context
ITypeDescriptorContext

En formatkontext som innehåller information om miljön som konverteraren anropas från.

culture
CultureInfo

Kulturspecifik information.

source
Object

Objektet som ska konverteras.

Returer

Genererar alltid ett undantag.

Undantag

source kan inte konverteras.

Kommentarer

Se Kommentarer i TemplateKeyConverter.

Gäller för