INotifyDataErrorInfo.GetErrors(String) Method
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 validation errors for a specified property or for the entire entity.
public:
System::Collections::IEnumerable ^ GetErrors(System::String ^ propertyName);
public System.Collections.IEnumerable GetErrors (string propertyName);
public System.Collections.IEnumerable GetErrors (string? propertyName);
abstract member GetErrors : string -> System.Collections.IEnumerable
Public Function GetErrors (propertyName As String) As IEnumerable
- propertyName
- String
The name of the property to retrieve validation errors for; or null
or Empty, to retrieve entity-level errors.
The validation errors for the property or entity.
This method returns an IEnumerable that can change as asynchronous validation rules finish processing. This enables the binding engine to automatically update the user interface validation feedback when errors are added, removed, or modified.
The return value can change to a different IEnumerable, or it can reuse a previously returned IEnumerable and change its contents. Any changes to the return value should raise the ErrorsChanged event, even if the return value implements INotifyCollectionChanged.
Προϊόν | Εκδόσεις |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.0, 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET σχόλια
.NET είναι ένα έργο ανοιχτού κώδικα. Επιλέξτε μια σύνδεση για να παρέχετε σχόλια: