Click or drag to resize

ValidationHelpersValidateLength Method

Validates length of a string to be under a certain length. Will throw if string is too long or negative maxLen is provided.
If input string is null or empty, length is considered 0.

Namespace:  NetQuarry.Services.Zoom
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void ValidateLength(
	string val,
	string varNm,
	int maxLen
)

Parameters

val
Type: SystemString
The input string
varNm
Type: SystemString
The variable name of the what is being validated, will be used for exception if needed
maxLen
Type: SystemInt32
The max length (inclusive) - must be non-negative
See Also