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

In This Topic
    OpenDataset<T> Method (CadDataset)
    In This Topic
    Gets a specific Dataset instance associated with name of type T in the CAD 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, Windows 8.1

    See Also