StringLengthAttribute.FormatErrorMessage Method
Silverlight
Applies formatting to an error message that is displayed when the string value is not within the specified length.
Namespace: System.ComponentModel.DataAnnotations
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
Parameters
- name
- Type: System.String
The name to include in the formatted error message.
| Exception | Condition |
|---|---|
| InvalidOperationException | MaximumLength is less than zero. -or- MaximumLength is less than MinimumLength. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: