Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValidationErrorCollection::HasErrors Property

 

Indicates whether the collection contains ValidationError objects that indicate compilation errors.

Namespace:   System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public:
property bool HasErrors {
	bool get();
}

Property Value

Type: System::Boolean

true 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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft