XamlSchemaContext.GetValueConverter<TConverterBase> Método

Definición

Devuelve un convertidor de valores que puede realizar la conversión al valor targetType solicitado.

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)

Parámetros de tipo

TConverterBase

Clase base concreta del convertidor.

Parámetros

converterType
Type

Implementación del convertidor.

targetType
XamlType

Tipo de destino deseado para el convertidor.

Devoluciones

XamlValueConverter<TConverterBase>

XamlValueConverter<TConverterBase> con una restricción que coincide con la restricción que se coloca en la llamada al método.

Se aplica a