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

In This Topic
    OpenDataset<T> Method (FeatureDataset)
    In This Topic
    Gets a specific Dataset instance associated with name of type T in the feature 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), or using AttributedRelationshipClass as T to open a dataset whose type is actually DatasetType.RelationshipClass.
    A geodatabase-related exception has occurred.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also