Definitions
A base class that supports the addition of new parameter definitions.
Inheritance Hierarchy
System.Object
Autodesk.Revit.DB.Definitions
Autodesk.Revit.DB.ExternalDefinitions
Autodesk.Revit.DB.InternalDefinitions
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class Definitions : IEnumerable<Definition>, IDisposable
The Definitions type exposes the following members.
Constructors
Name
Description
Public Method
Definitions
Constructs an empty set of parameter definitions.
Properties
Name
Description
Public Property
IsEmpty
Identifies if the definitions collection is empty.
Public Property
Item
Retrieves a definition by a given name.
Public Property
Size
The number of definitions in the collection.
Methods
Name
Description
Public Method
Contains
Tests for the existence of a definition within the set.
Public Method
Create
Creates a new parameter definition using specified options.
Public Method
Dispose
Releases all resources used by the Definitions
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object)
Protected Method
GetBasicIEnumerator
Returns an enumerator that iterates through a collection.
Public Method
GetEnumerator
Retrieves an enumerator to the collection.
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
ToString
Returns a string that represents the current object.
(Inherited from Object)
Remarks
There are two derivations of this class, one of which handles external parameters and another which handles internal parameters.