ValidationResult Class
Represents a container for the results of a validation request.
Assembly: System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)
| Name | Description | |
|---|---|---|
![]() | ValidationResult(String^) | Initializes a new instance of the ValidationResult class by using an error message. |
![]() | ValidationResult(String^, IEnumerable<String^>^) | Initializes a new instance of the ValidationResult class by using an error message and a list of members that have validation errors. |
![]() | ValidationResult(ValidationResult^) | Initializes a new instance of the ValidationResult class by using a ValidationResult object. |
| Name | Description | |
|---|---|---|
![]() | ErrorMessage | Gets the error message for the validation. |
![]() | MemberNames | Gets the collection of member names that indicate which fields have validation errors. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string representation of the current validation result.(Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | Success | Represents the success of the validation (true if validation was successful; otherwise, false). |
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)