Share

FailureMessageKey Class

A unique key assigned to each posted failure message

Inheritance Hierarchy

System.Object
  Autodesk.Revit.DB.FailureMessageKey


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)

Syntax

C#

public class FailureMessageKey : IDisposable

The FailureMessageKey type exposes the following members.

Constructors

 NameDescription
Public methodFailureMessageKey Constructs a new FailureMessageKey with default settings.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the FailureMessageKey
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides Object.Equals(Object))
Public methodGetHashCode Gets the integer value of the id as hash code
(Overrides Object.GetHashCode())
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)

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.

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

Reference

Was this information helpful?