Checks if given reference identifies part of object identified by this reference.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public bool Contains( Reference reference )
Parameters
- reference Reference
- Another reference.
Return Value
BooleanReturns true if given reference identifies part of object identified by this reference, false otherwise.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when argument is null. |
Remarks
Can be used to check:- If given Reference is a part of a particular Subelement identified by this Reference.
- If given Reference is a part of a particular Element identified by this Reference.