ArcGIS Pro 2.8 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
This dataset does not have an associated data store because it is either invalid, virtual or currently not supported.
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Dataset Class
Dataset Members