ValidationError Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents an instance of a validation error that occurs before execution of the workflow.

Namespace:   System.Activities.Validation
Assembly:  System.Activities (in System.Activities.dll)

System.Object
  System.Activities.Validation.ValidationError

public class ValidationError

NameDescription
System_CAPS_pubmethodValidationError(String)

Creates a new instance of the ValidationError class using the specified error message.

System_CAPS_pubmethodValidationError(String, Boolean)

Creates a new instance of the ValidationError class using the specified error message and warning indication.

System_CAPS_pubmethodValidationError(String, Boolean, String)

Creates a new instance of the ValidationError class using the specified error message, warning indicator, and name of the property that caused the error.

System_CAPS_pubmethodValidationError(String, Boolean, String, Object)

Creates a new instance of the ValidationError class using the specified error message, warning indicator, name of the property and the source detail that caused the error.

NameDescription
System_CAPS_pubpropertyId

A unique alphanumeric identifier for the Activity that is the source of the error. This identifier is unique for each activity in a specific workflow.

System_CAPS_pubpropertyIsWarning

Gets a value that indicates whether the validation error is a warning and not an error.

System_CAPS_pubpropertyMessage

Gets an alphanumeric message that provides information about the validation error.

System_CAPS_pubpropertyPropertyName

Gets the alphanumeric name of the property that generated the error.

System_CAPS_pubpropertySource

Gets the activity that is the source of the error.

System_CAPS_pubpropertySourceDetail

Gets the detail about the source of the error.

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()

Converts the validation error property names and values into a message string that lists them.(Overrides Object.ToString().)

.NET Framework
Available since 4.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: