ValidationErrorCollection::HasErrors Property
Indicates whether the collection contains ValidationError objects that indicate compilation errors.
Assembly: System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)
Property Value
Type: System::Booleantrue if the activity has generated validation errors; otherwise, false.
If an Activity has generated a warning, the warning is considered an error in the context of this property.
The following example shows how to create and manipulate a validation error collection as part of a custom validation routine.
This code example is part of the Send E-mail SDK sample and is from the SendMailActivity.cs file. For more information, see Send Mail Activity.
Available since 3.0