Share

Subelement.IsValidSubelementReference Method

Checks if given Reference identifies either a valid element or subelement.


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

Syntax

C#

public static bool IsValidSubelementReference(
	Document aDoc,
	Reference reference
)

Parameters

aDoc  Document
The document.
reference  Reference
The reference that identifies an element or subelement.

Return Value

Boolean
True if %reference% identifies a valid element or subelement, false otherwise.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

Remarks

A reference to an element or subelement in a linked document is acceptable.

See Also

Reference

Was this information helpful?