ValidationResult Class

 

Represents a container for the results of a validation request.

Namespace:   System.ComponentModel.DataAnnotations
Assembly:  System.ComponentModel.DataAnnotations (in System.ComponentModel.DataAnnotations.dll)

System.Object
  System.ComponentModel.DataAnnotations.ValidationResult

Public Class ValidationResult

NameDescription
System_CAPS_pubmethodValidationResult(String)

Initializes a new instance of the ValidationResult class by using an error message.

System_CAPS_pubmethodValidationResult(String, IEnumerable(Of String))

Initializes a new instance of the ValidationResult class by using an error message and a list of members that have validation errors.

System_CAPS_protmethodValidationResult(ValidationResult)

Initializes a new instance of the ValidationResult class by using a ValidationResult object.

NameDescription
System_CAPS_pubpropertyErrorMessage

Gets the error message for the validation.

System_CAPS_pubpropertyMemberNames

Gets the collection of member names that indicate which fields have validation errors.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string representation of the current validation result.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticSuccess

Represents the success of the validation (true if validation was successful; otherwise, false).

Universal Windows Platform
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.

Return to top
Show: