Information
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.

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)

public ref class Validator abstract sealed

The Validator type exposes the following members.

  NameDescription
Public methodStatic memberCheckArbitrary validation.
Public methodStatic memberCheckAndTrimString(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 memberCheckAndTrimString(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 memberCheckAndTrimString(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 memberCheckFileNameValidate whether the file name is good.
Public methodStatic memberCheckId(Int32, String)Check that an object ID is valid (> 0).
Public methodStatic memberCheckId(Int32, String, IPropertyValidator)Inline validation method for ID properties.
Public methodStatic memberCheckNotNull
Public methodStatic memberCheckString(String, String, IPropertyValidator, Int32)Inline validation method for string properties that cannot be empty or too long.
Public methodStatic memberCheckString(String, String, String, IPropertyValidator, Int32)Inline validation method for string properties that cannot be empty or too long.
Public methodStatic memberCheckString(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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: