MaskedTextProvider.VerifyString Method (String)

 

Tests whether the specified string could be set successfully.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public bool VerifyString(
	string input
)

Parameters

input
Type: System.String

The String value to test.

Return Value

Type: System.Boolean

true if the specified string represents valid input; otherwise, false.

The VerifyString applies the input string against the mask, without actually changing the formatted string, to test whether input would be valid in a corresponding Set operation. This method also returns true if input is null or has zero length.

.NET Framework
Available since 2.0
Return to top
Show: