ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Catalog Namespace / ServerConnectionProjectItem Class / ServerConnection Property

ServerConnection Property (ServerConnectionProjectItem)
Gets and sets the ServerConnection.
Syntax
public CIMProjectServerConnection ServerConnection {get; set;}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.4 or higher.
See Also