Validation.GetHasError(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of the HasError attached property of the specified element.
public:
static bool GetHasError(System::Windows::DependencyObject ^ element);
public static bool GetHasError (System.Windows.DependencyObject element);
static member GetHasError : System.Windows.DependencyObject -> bool
Public Shared Function GetHasError (element As DependencyObject) As Boolean
Parameters
- element
- DependencyObject
The UIElement or ContentElement object to read the value from.
Returns
The value of the HasError attached property of the specified element.
Exceptions
If element
is null
.
Applies to
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.