Validation.GetErrors Method (DependencyObject)

 

Gets the value of the Errors attached property of the specified element.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

static member GetErrors : 
        element:DependencyObject -> ReadOnlyObservableCollection<ValidationError>

Parameters

element
Type: System.Windows.DependencyObject

The UIElement or ContentElement object to read the value from.

Exception Condition
ArgumentNullException

If element is null.

.NET Framework
Available since 3.0
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: