{
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.
}
});
}
System.Object
ArcGIS.Core.Data.Connector
ArcGIS.Core.Data.ArcGISServerConnectionFile
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)