ValueConversionAttribute(Type, Type) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化一個新的類別實例 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。