語言

XamlSchemaContext.GetValueConverter<TConverterBase> 方法

定義

回傳一個可轉換為所需 targetType的值轉換器。

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)

類型參數

TConverterBase

具體的轉換器基類。

參數

converterType
Type

轉換器的實作。

targetType
XamlType

轉換器想要的目的地類型。

傳回

XamlValueConverter<TConverterBase> A 的限制與方法呼叫中所設定的限制相符。

適用於