IPropertySet iCProps = new PropertySetClass();
iCProps.SetProperty("URL", "@Http://baza.arcgis/services");
IAGSServerConnectionFactory iSCF = new AGSServerConnectionFactoryClass();
IAGSServerConnection iSvrConn = iSCF.Open(iCProps, 0);
IAGSEnumServerObjectName enumSOName = null;
enumSOName = iSvrConn.ServerObjectNames;
IAGSServerObjectName ISObjName = null;
while ((ISObjName = enumSOName.Next()) != null)
{
if (ISObjName.Name == "Sample)GeoDataService")
{
return ISObjName;
}
}
return null;
使用AGSServerConnectionFactory 连接 Web service地图服务
最新推荐文章于 2022-08-22 10:46:01 发布