ArcGIS Pro 2.6 API Reference Guide
GetConnectionString Method

ArcGIS.Core.Data Namespace > Datastore Class : GetConnectionString Method
Gets the connection string associated with the currently opened data store (e.g., an enterprise geodatabase). This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public string GetConnectionString()
Public Function GetConnectionString() As String

Return Value

The connection string associated with the currently opened data store (e.g., an enterprise geodatabase).
Exceptions
ExceptionDescription
No valid data store has been opened or the type of data store is currently not supported prior to invoking this operation.
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

Datastore Class
Datastore Members