NotifyDataErrorValidationRule.Validate(Object, CultureInfo) 方法

定义

对值执行验证检查。

public:
 override System::Windows::Controls::ValidationResult ^ Validate(System::Object ^ value, System::Globalization::CultureInfo ^ cultureInfo);
public override System.Windows.Controls.ValidationResult Validate (object value, System.Globalization.CultureInfo cultureInfo);
override this.Validate : obj * System.Globalization.CultureInfo -> System.Windows.Controls.ValidationResult
Public Overrides Function Validate (value As Object, cultureInfo As CultureInfo) As ValidationResult

参数

value
Object

要检查的值(来自绑定目标)。

cultureInfo
CultureInfo

要在此规则中使用的区域性。

返回

ValidationResult

ValidationResult 对象。

适用于