ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / BimFileDatastore Class / GetDefinition<T> Method
The type of dataset definition.
The name of the dataset.
Version

GetDefinition<T> Method (BimFileDatastore)
Gets a specific Definition instance associated with name of type T in the BIM file datastore. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public T GetDefinition<T>( 
   string name
)
where T: Definition

Parameters

name
The name of the dataset.

Type Parameters

T
The type of dataset definition.

Return Value

A specific Definition instance corresponding to type T.
Exceptions
ExceptionDescription

No valid BIM file datastore has been opened prior to calling this operation.

-or-

The DatasetType corresponding to type T is not supported.

name is invalid (e.g., a null value or an empty string).
name does not exist or cannot be opened in the geodatabase.
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3.3 or higher.
See Also