Validator.CheckString Method (String, String, IPropertyValidator, Int32)
Inline validation method for string properties that cannot be empty or too long.
Namespace: Microsoft.TeamFoundation.TestManagement.Client.Internal
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
'Declaration
Public Shared Function CheckString ( _
value As String, _
propertyName As String, _
propertyValidator As IPropertyValidator, _
maxLength As Integer _
) As Boolean
public static bool CheckString(
string value,
string propertyName,
IPropertyValidator propertyValidator,
int maxLength
)
public:
static bool CheckString(
String^ value,
String^ propertyName,
IPropertyValidator^ propertyValidator,
int maxLength
)
static member CheckString :
value:string *
propertyName:string *
propertyValidator:IPropertyValidator *
maxLength:int -> bool
public static function CheckString(
value : String,
propertyName : String,
propertyValidator : IPropertyValidator,
maxLength : int
) : boolean
Parameters
- value
Type: System.String
- propertyName
Type: System.String
- propertyValidator
Type: Microsoft.TeamFoundation.TestManagement.Client.Internal.IPropertyValidator
- maxLength
Type: System.Int32
Return Value
Type: System.Boolean
True if the validation was successful; false if any part of the validation failed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.TeamFoundation.TestManagement.Client.Internal Namespace