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.

适用于

另请参阅