DocumentUnpostFailure Method |
Deletes the posted failure message associated with a given FailureMessageKey.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic void UnpostFailure(
FailureMessageKey messageKey
)
Public Sub UnpostFailure (
messageKey As FailureMessageKey
)
public:
void UnpostFailure(
FailureMessageKey^ messageKey
)
member UnpostFailure :
messageKey : FailureMessageKey -> unit
Parameters
- messageKey FailureMessageKey
-
The key of the FailureMessage to be deleted.
Exceptions
Remarks
If code that previously has posted a failure is executed again or otherwise detects
that failure conditions do not exist anymore and the failure is not longer relevant,
it should delete a failure message in order to let transaction to be committed.
In order to delete the failure, it should invoke this method with a message key
that was returned when the failure was posted.
See Also