[This is preliminary documentation and is subject to change.]
Recursivelly gets validation errors of given elemnent and all its logical children
Namespace: Tools.WindowsT.WPFAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public static IEnumerable<ValidationError> GetErrors( this DependencyObject parent ) |
| Visual Basic |
|---|
<ExtensionAttribute> _ Public Shared Function GetErrors ( _ parent As DependencyObject _ ) As IEnumerable(Of ValidationError) |
| Visual C++ |
|---|
[ExtensionAttribute] public: static IEnumerable<ValidationError^>^ GetErrors( DependencyObject^ parent ) |
| F# |
|---|
static member GetErrors : parent:DependencyObject -> IEnumerable<ValidationError> |
| JScript |
|---|
public static function GetErrors( parent : DependencyObject ) : IEnumerable<ValidationError> |
Parameters
- parent
- Type: System.Windows..::..DependencyObject
The element to check recursivelly for validation errors
Return Value
Collection of validation errors for parent and all its logical childrenUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type DependencyObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | parent is null |
See Also
Version History
1.5.3
- This function is new in version 1.5.3