ArcGIS Pro 2.8 API Reference Guide
OpenDataset<T> Method (FileSystemDatastore)

ArcGIS.Core.Data Namespace > FileSystemDatastore Class : OpenDataset<T> Method
The type of dataset to open.
The name of the dataset to open.
Gets a specific Dataset instance associated with name of type T in the file-system data store. 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

No valid file-system data store has been opened prior to calling this operation.

-or-

The dataset type corresponding to T is not supported (see DatasetType).

name is null or an empty string.
A geodatabase-related exception has occurred. For example, the name is invalid.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

FileSystemDatastore Class
FileSystemDatastore Members