Validate(Object,CultureInfo) Method
See Also 
SourceCode.Workflow.WizardFramework.Validation.K2RegExp Namespace > RegexValidationRule Class > Validate Method : Validate(Object,CultureInfo) Method



value
The value from the binding target to check.
cultureInfo
The culture to use in this rule.

Glossary Item Box

When overridden in a derived class, performs validation checks on a value.

Syntax

Visual Basic (Declaration) 
Public Overloads Overrides Function Validate( _
   ByVal value As Object, _
   ByVal cultureInfo As CultureInfo _
) As ValidationResult
Visual Basic (Usage)Copy Code
Dim instance As RegexValidationRule
Dim value As Object
Dim cultureInfo As CultureInfo
Dim value As ValidationResult
 
value = instance.Validate(value, cultureInfo)
C# 
public override ValidationResult Validate( 
   object value,
   CultureInfo cultureInfo
)
C++/CLI 
public:
ValidationResult^ Validate( 
   Object^ value,
   CultureInfo^ cultureInfo
) override 

Parameters

value
The value from the binding target to check.
cultureInfo
The culture to use in this rule.

Return Value

A System.Windows.Controls.ValidationResult object.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also