StringLengthAttribute::FormatErrorMessage Method (String^)
.NET Framework (current version)
Applies formatting to a specified error message.
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
Parameters
- name
-
Type:
System::String^
The name of the field that caused the validation failure.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | maximumLength is negative. -or- maximumLength is less than minimumLength. |
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Available since 8
.NET Framework
Available since 3.5
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Show: