ArcGIS Pro 2.7 API Reference Guide
GetConnector Method (Database)

ArcGIS.Core.Data Namespace > Database Class : GetConnector Method
Gets the DatabaseConnectionProperties associated with the currently opened database. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public override Connector GetConnector()
Public Overrides NotOverridable Function GetConnector() As Connector

Return Value

The DatabaseConnectionProperties associated with the currently opened database.
Exceptions
ExceptionDescription
No valid database has been opened prior to invoking this operation.
A database-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Database Class
Database Members