Railing.RailingCanBeHostedByElement Method

Checks whether the specified element can be used as a host for the railing. The host can be:


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

Syntax

C#

public bool RailingCanBeHostedByElement(
	ElementId hostId
)

Parameters

hostId  ElementId
Element id to check.

Return Value

Boolean
True if the element can be used as host for the railing.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null

See Also

Reference

Railing Class
Autodesk.Revit.DB.Architecture Namespace