FailureMessage.AddResolution
Public Class
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
InvalidOperationException
Adds a resolution for the failure.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public FailureMessage AddResolution( FailureResolutionType type, FailureResolution resolution)
Parameters
The type of the resolution.
resolution FailureResolution
The resolution.
Return Value
FailureMessage
The FailureMessage.
Exceptions
Exception
Condition
ArgumentException
type is not a valid resolution type for this FailureMessage. -or- resolution of type is not valid for this FailureMessage. -or- This FailureMessage already contains a resolution of type type.
ArgumentNullException
A non-optional argument was null
ArgumentOutOfRangeException
A value passed for an enumeration argument is not a member of that enumeration
InvalidOperationException
This FailureMessage is already posted to a document
Remarks
Each pair of FailureResolutionType and FailureResolution must have been defined in FailureDefinition, and could only be added once.