ArcGISServerConnectionFile Constructor
Connect to the ArcGISServer using a connection file
{
await QueuedTask.Run(() =>
{
Uri uriPath = new Uri("path\\to\\the\\ArcGISServerConnectionFile.ags");
ArcGISServerConnectionFile arcGISServerConnectionFile = new ArcGISServerConnectionFile(uriPath, "FeatureServiceName");
using (Geodatabase geodatabase = new Geodatabase(arcGISServerConnectionFile))
{
// Use the geodatabase.
}
});
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.8 or higher.