Open sandboxFocus

Method OnStringLengthContractViolated

OnStringLengthContractViolated(dynamic?, int, int, ContractContext)

Template used by the StringLengthAttribute contract when both the lower and the upper bounds are specified.

Declaration
[Template]
public virtual void OnStringLengthContractViolated(dynamic? value, int minimumLength, int maximumLength, ContractContext context)
Parameters
Type Name Description
dynamic value
int minimumLength
int maximumLength
ContractContext context