Share via


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
Public methodStatic member Check Arbitrary validation.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member 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.
Public methodStatic member CheckFileName Validate whether the file name is good.
Public methodStatic member CheckId(Int32, String) Check that an object ID is valid (> 0).
Public methodStatic member CheckId(Int32, String, IPropertyValidator) Inline validation method for ID properties.
Public methodStatic member CheckNotNull
Public methodStatic member CheckString(String, String, IPropertyValidator, Int32) Inline validation method for string properties that cannot be empty or too long.
Public methodStatic member CheckString(String, String, String, IPropertyValidator, Int32) Inline validation method for string properties that cannot be empty or too long.
Public methodStatic member 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