IErrors.AddErrors method
Namespace: NextDesign.Core
Description
Adds the specified error information to the model.
argument
Name | Type | Description |
---|---|---|
errors | IEnumerable<IError> | Enumeration of error information. |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for errors |
Annotation
Note: Must be called from the UI thread while the UI is being displayed.
Example:
//enumeration of errors
IEnumerable<IError> errors;
//Call the method on the UI thread
System.Windows.Application.Current.Dispatcher.Invoke(() => {Workspace.Errors.AddErrors(errors); });