tryGetElementProps Method
Get properties of an Element by Id, FederationGuid, or Code
tryGetElementProps<T extends ElementProps>(props: string | Code | ElementLoadProps): undefined | T
@returns  The properties of the element or undefined if the element is not found.
@throws IModelError if the element exists, but cannot be loaded.
@note  Useful for cases when an element may or may not exist and throwing an Error would be overkill.
@see IModelDb.Elements.getElementProps
| Parameter | Type | Description | 
|---|---|---|
| props | string | Code | ElementLoadProps | 
Returns - undefined | T
The properties of the element or undefined if the element is not found.
Defined in
- core/backend/src/IModelDb.ts Line 2178
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.