Engine中如何打开.ags连接文件?

Engine接口如何打开.ags连接文件?
已邀请:

朱新颖

赞同来自:

【解决办法】:
使用IAGSServerConnectionFactory2.OpenFromFile();传入该server连接文件的路径即可。




ESRI.ArcGIS.GISClient.IAGSServerConnectionFactory2 connectionFactory = (ESRI.ArcGIS.GISClient.IAGSServerConnectionFactory2)new ESRI.ArcGIS.GISClient.AGSServerConnectionFactory(); 
//create a property set to hold connection properties 
ESRI.ArcGIS.GISClient.IAGSServerConnection gisServer = connectionFactory.OpenFromFile(@C:\Users\Esri\Desktop10.5\AppData\Roaming\ESRI\ArcCatalog\arcgis on zhuxinying.arcgismap.com_6443 (admin).ags, 0); 

要回复问题请先登录注册