HelperIsValidPatternValue Method (String, String, Regex) |
Validates specified value with the specified regular expression.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static string IsValidPatternValue(
string name,
string value,
Regex regx
)
Public Shared Function IsValidPatternValue (
name As String,
value As String,
regx As Regex
) As String
public:
static String^ IsValidPatternValue(
String^ name,
String^ value,
Regex^ regx
)
static member IsValidPatternValue :
name : string *
value : string *
regx : Regex -> string
Parameters
- name
- Type: SystemString
Name of the field. - value
- Type: SystemString
Value to validate. - regx
- Type: System.Text.RegularExpressionsRegex
Regular expression object.
Return Value
Type:
StringReturns empty string if valid; otherwise error message.
See Also