Click or drag to resize

StringLengthAttribute Constructor (Int32, Int32, Boolean, Char)

Initializes a new instance of the StringLengthAttribute class.

Namespace:  EdiFabric.Core.Annotations.Validation
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 9.8.7.3 (9.8.7.3)
Syntax
public StringLengthAttribute(
	int minLen,
	int maxLen,
	bool padLeft,
	char padChar
)

Parameters

minLen
Type: SystemInt32
The minimum allowed length.
maxLen
Type: SystemInt32
The maximum allowed length.
padLeft
Type: SystemBoolean
Whether to apply the pad char to the left or to the right.
padChar
Type: SystemChar
The pad char to apply up to the max length.
See Also