System.ComponentModel.MaskedTextProvider.VerifyString C# (CSharp) Method

VerifyString() public method

Verifies the test string against the mask.
public VerifyString ( string input ) : bool
input string
return bool
        public bool VerifyString(string input)
        {
            int dummyVar;
            MaskedTextResultHint dummyVar2;
            return VerifyString(input, out dummyVar, out dummyVar2);
        }

Same methods

MaskedTextProvider::VerifyString ( string input, int &testPosition, MaskedTextResultHint &resultHint ) : bool

Usage Example

 /// <summary>
 /// Check if the received string value matches with the Introduction Mask for DateTime datatype.
 /// </summary>
 /// <param name="stringValue">String to be checked.</param>
 /// <returns>Returns true if the string matches with Introduction Mask.</returns>
 private bool IsValidDateTimeAccordingMask(string stringValue)
 {
     bool result = true;
     if (mMask != string.Empty)
     {
         MaskedTextProvider maskTextProvider = new MaskedTextProvider(ConvertMask2DisplayMask(mMask));
         result = maskTextProvider.VerifyString(stringValue);
     }
     return result;
 }
All Usage Examples Of System.ComponentModel.MaskedTextProvider::VerifyString