FailureDefinitionRegistry
The global registry for all FailureDefinitions in the Revit session.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.FailureDefinitionRegistry
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class FailureDefinitionRegistry : IDisposableThe FailureDefinitionRegistry type exposes the following members.
Properties
Name
Description
Public Property
IsValidObject
Specifies whether the .NET object represents a valid Revit entity.
Methods
Name
Description
Public Method
Dispose
Releases all resources used by the FailureDefinitionRegistry
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Public Method
FindFailureDefinition
Finds a specific FailureDefinition by a given FailureDefinitionId.
Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object)
Public Method
ListAllFailureDefinitions
Retrieves all the registered FailureDefinitions.
Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
When a FailureDefinition is created, it will be registered in this registry automatically. Registration is allowed only during Revit Application startup - after that FailureDefinitionRegistry is locked and creation of new FailureDefinitions is not allowed. There is only one instance of FailureDefinitionRegistry in session.
GetFailureDefinitionRegistry.