Validator Class
For internal use only.
Utility methods for various validations of input parameters.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.TestManagement.Client.Internal.Validator
Namespace: Microsoft.TeamFoundation.TestManagement.Client.Internal
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
'Declaration
Public NotInheritable Class Validator
public static class Validator
public ref class Validator abstract sealed
[<AbstractClass>]
[<Sealed>]
type Validator = class end
public final class Validator
The Validator type exposes the following members.
Methods
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. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
Microsoft.TeamFoundation.TestManagement.Client.Internal Namespace