The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Validator Class
For internal use only.
Utility methods for various validations of input parameters.
Namespace: Microsoft.TeamFoundation.TestManagement.Client.Internal
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
The Validator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Check | Arbitrary validation. |
![]() ![]() | CheckAndTrimString(String%, String, IPropertyValidator, Int32) | Inline validation method for string properties that cannot be empty or too long. This method trims the string and do comparison. |
![]() ![]() | CheckAndTrimString(String%, String, String, IPropertyValidator, Int32) | Inline validation method for string properties that cannot be empty or too long. This method trims the string and do comparison. |
![]() ![]() | CheckAndTrimString(String%, String, String, IPropertyValidator, Int32, Boolean) | Inline validation method for string properties that cannot be too long. Whether it can be empty or not can be configured. This method trims the string and do comparison. |
![]() ![]() | CheckFileName | Validate whether the file name is good. |
![]() ![]() | CheckId(Int32, String) | Check that an object ID is valid (> 0). |
![]() ![]() | CheckId(Int32, String, IPropertyValidator) | Inline validation method for ID properties. |
![]() ![]() | CheckNotNull | |
![]() ![]() | CheckString(String, String, IPropertyValidator, Int32) | Inline validation method for string properties that cannot be empty or too long. |
![]() ![]() | CheckString(String, String, String, IPropertyValidator, Int32) | Inline validation method for string properties that cannot be empty or too long. |
![]() ![]() | CheckString(String, String, String, IPropertyValidator, Int32, Boolean) | Inline validation method for string properties that cannot be too long. Whether it can be empty or not can be configured. |
Show:
