Skip to main content

IErrors.AddErrors method

Namespace: NextDesign.Core

Description

Adds the specified error information to the model.

argument

NameTypeDescription
errorsIEnumerable<IError>Enumeration of error information.

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf 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); });