FailureMessageKey Class

A unique key assigned to each posted failure message
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBFailureMessageKey

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class FailureMessageKey : IDisposable

The FailureMessageKey type exposes the following members.

Constructors
 NameDescription
Public methodFailureMessageKey Constructs a new FailureMessageKey with default settings.
Top
Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the FailureMessageKey
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object))
Public methodGetHashCode Gets the integer value of the id as hash code
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsEqual Checks it this key is equal to the other.
Public methodIsValid Checks if the failure message key is valid
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(FailureMessageKey, FailureMessageKey)Determines whether two FailureMessageKeys are the same.
Public operatorStatic memberInequality(FailureMessageKey, FailureMessageKey)Determines whether two FailureMessageKeys are different.
Top
Remarks
When a failure message is posted, it gets a unique key assigned and returned to the caller. The key is guaranteed to be unique in the Revit session. The key can be used to unpost (delete) previously posted failure message if it is no longer valid.
See Also