Share via


BindableProperty.ValidateValueDelegate<TPropertyType> 委托

定义

BindableProperty.ValidateValue 的强类型委托。

public delegate bool BindableProperty.ValidateValueDelegate<in TPropertyType>(BindableObject bindable, TPropertyType value);
type BindableProperty.ValidateValueDelegate<'PropertyType> = delegate of BindableObject * 'PropertyType -> bool

类型参数

TPropertyType

绑定属性的类型。

这是逆变类型参数。 即,可以使用指定的类型,也可以使用派生程度较低的任何类型。 有关协变和逆变的详细信息,请参阅泛型中的协变和逆变

参数

bindable
BindableObject

包含属性的可绑定对象。

value
TPropertyType

要验证的值。

返回值

System.Boolean

适用于