Validates that a string is of a particular length.

Namespace: Nehta.VendorLibrary.Common
Assembly: Nehta.VendorLibrary.Common (in Nehta.VendorLibrary.Common.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static void ValidateStringLength(
	string name,
	string value,
	int length,
	bool required
)
Visual Basic
Public Shared Sub ValidateStringLength ( _
	name As String, _
	value As String, _
	length As Integer, _
	required As Boolean _
)
Visual C++
public:
static void ValidateStringLength(
	String^ name, 
	String^ value, 
	int length, 
	bool required
)

Parameters

name
Type: System..::..String
The name of the argument to validate.
value
Type: System..::..String
The value of the string to validate.
length
Type: System..::..Int32
The length that the string has to be.
required
Type: System..::..Boolean
Indicates if the argument is required.

See Also