ValueConversionAttribute(Type, Type) 建構函式

定義

初始化一個新的類別實例 ValueConversionAttribute ,使用指定的來源型別與目標型別。

public:
 ValueConversionAttribute(Type ^ sourceType, Type ^ targetType);
public ValueConversionAttribute(Type sourceType, Type targetType);
new System.Windows.Data.ValueConversionAttribute : Type * Type -> System.Windows.Data.ValueConversionAttribute
Public Sub New (sourceType As Type, targetType As Type)

參數

sourceType
Type

這個轉換器能轉換的類型。

targetType
Type

這個轉換器會轉換成的類型。

例外狀況

參數 targetType 不可能是 null

適用於

另請參閱