|
![]() |
Report an error immediately to the user.
Namespace: Autodesk.Navisworks.Api
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Visual Basic |
---|
Public Function ReportError ( _ errorCode As Integer, _ message As String, _ isFileError As Boolean _ ) As Boolean |
C# |
---|
public bool ReportError( int errorCode, string message, bool isFileError ) |
Visual C++ |
---|
public: bool ReportError( int errorCode, String^ message, bool isFileError ) |
Parameters
- errorCode
- Type: System..::..Int32
Application/operation-defined error code.
- message
- Type: System..::..String
User error message.
- isFileError
- Type: System..::..Boolean
Is the error related to the current working filename ?
Return Value
false if user wants to cancel operation, true if they want to ignore and continue.
Exceptions
Exception | Condition |
---|---|
System..::..ObjectDisposedException | Object has been Disposed |
System..::..NotSupportedException | Object is Read-Only |