FailureDefinitionRegistry Class

The global registry for all FailureDefinitions in the Revit session.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBFailureDefinitionRegistry

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

The FailureDefinitionRegistry type exposes the following members.

Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the FailureDefinitionRegistry
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodFindFailureDefinition Finds a specific FailureDefinition by a given FailureDefinitionId.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodListAllFailureDefinitions Retrieves all the registered FailureDefinitions.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
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
See Also