ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / BimFileDataset Class / OpenDataset<T> Method
The type of dataset to open.
The name of the dataset to open.

In This Topic
    OpenDataset<T> Method (BimFileDataset)
    In This Topic
    Gets a specific Dataset instance associated with name of type T in the BIM file dataset. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public T OpenDataset<T>( 
       string name
    )
    where T: Dataset
    Public Function OpenDataset(Of T As Dataset)( _
       ByVal name As String _
    ) As T

    Parameters

    name
    The name of the dataset to open.

    Type Parameters

    T
    The type of dataset to open.

    Return Value

    A specific Dataset instance corresponding to type T.
    Exceptions
    ExceptionDescription
    T is not currently supported as a dataset type (see DatasetType).
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.3 or higher.
    See Also