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>

XamlValueConverter<TConverterBase>,其條件約束符合方法呼叫上設定的條件約束。

適用於