ContractTemplates.OnStringMaxLengthContractViolated Method
OnStringMaxLengthContractViolated(Object, Int32)
Template used by the StringLengthAttribute contract when only the upper bound is specified.
Declaration
[Template]
public virtual void OnStringMaxLengthContractViolated(dynamic value, int maximumLength)
Parameters
Type | Name | Description |
---|---|---|
Object | value | |
Int32 | maximumLength |