Reference.Contains Method

Checks if given reference identifies part of object identified by this reference.


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

Syntax

C#

public bool Contains(
	Reference reference
)

Parameters

reference  Reference
Another reference.

Return Value

Boolean
Returns true if given reference identifies part of object identified by this reference, false otherwise.

Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when argument is null.

Remarks

Can be used to check: The input reference can refer to a subelement or a specific geometric item from an element or subelement.

See Also

Reference

Reference Class
Autodesk.Revit.DB Namespace