ArcGIS Pro 2.6 API Reference Guide
GetDatastore Method (Dataset)

ArcGIS.Core.Data Namespace > Dataset Class : GetDatastore Method
Gets the data store of this dataset. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Datastore GetDatastore()
Public Function GetDatastore() As Datastore

Return Value

The data store of this dataset.
Exceptions
ExceptionDescription
The type of data store associated with this dataset is invalid or currently not supported.
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Dataset Class
Dataset Members