XamlSchemaContext.GetValueConverter<TConverterBase> Methode

Definition

Gibt einen Wertkonverter zurück, der in den angeforderten targetTypeWert konvertiert werden kann.

protected public:
generic <typename TConverterBase>
 where TConverterBase : class System::Xaml::Schema::XamlValueConverter<TConverterBase> ^ GetValueConverter(Type ^ converterType, System::Xaml::XamlType ^ targetType);
protected internal System.Xaml.Schema.XamlValueConverter<TConverterBase> GetValueConverter<TConverterBase>(Type converterType, System.Xaml.XamlType targetType) where TConverterBase : class;
member this.GetValueConverter : Type * System.Xaml.XamlType -> System.Xaml.Schema.XamlValueConverter<'ConverterBase (requires 'ConverterBase : null)> (requires 'ConverterBase : null)
Protected Friend Function GetValueConverter(Of TConverterBase As Class) (converterType As Type, targetType As XamlType) As XamlValueConverter(Of TConverterBase)

Typparameter

TConverterBase

Die spezifische Konverterbasisklasse.

Parameter

converterType
Type

Die Konverterimplementierung.

targetType
XamlType

Der gewünschte Zieltyp für den Konverter.

Gibt zurück

A XamlValueConverter<TConverterBase> with a constraint that matches the constraint that is put on the method call.

Gilt für: