Method ArgumentHasMaxLength
ArgumentHasMaxLength(Expression<Func<string>>, int)
Checks if the given string has a length which exceeds given max length.
Declaration
public static void ArgumentHasMaxLength(Expression<Func<string>> expression, int maxLength)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression<Func<string>> | expression | |
| int | maxLength |
ArgumentHasMaxLength(string, string, int)
Checks if the given string has a length which exceeds given max length.
Declaration
public static void ArgumentHasMaxLength(string propertyValue, string paramName, int maxLength)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyValue | |
| string | paramName | |
| int | maxLength |