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

In This Topic
    GetDefinition<T> Method (BimFileDatastore)
    In This Topic
    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
    Public Function GetDefinition(Of T As Definition)( _
       ByVal name As String _
    ) As T

    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