A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/api/system.componentmodel.inotifydataerrorinfo below:

INotifyDataErrorInfo Interface (System.ComponentModel) | Microsoft Learn

INotifyDataErrorInfo Interface Definition

Defines members that data entity classes can implement to provide custom synchronous and asynchronous validation support.

public interface class INotifyDataErrorInfo
public interface INotifyDataErrorInfo
type INotifyDataErrorInfo = interface
Public Interface INotifyDataErrorInfo

This interface enables data entity classes to implement custom validation rules and expose validation results asynchronously. This interface also supports custom error objects, multiple errors per property, cross-property errors, and entity-level errors. Cross-property errors are errors that affect multiple properties. You can associate these errors with one or all of the affected properties, or you can treat them as entity-level errors. Entity-level errors are errors that either affect multiple properties or affect the entire entity without affecting a particular property.

Properties HasErrors

Gets a value that indicates whether the entity has validation errors.

Methods GetErrors(String)

Gets the validation errors for a specified property or for the entire entity.

Events ErrorsChanged

Occurs when the validation errors have changed for a property or for the entire entity.

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4