[ServerObjectExtension("MapServer", AllCapabilities = "", DefaultCapabilities = "", Description = "Test", DisplayName = "TestSOE", Properties = "FilePathStoreConfig=...;PropertyB=Cities", SupportsREST = true, SupportsSOAP = false)]
for your properties why don't you use simple properties ?
Guid guid = Marshal.GenerateGuidForType(typeof(IServerEnvironment)); UID uid = new UIDClass(); uid.Value = guid.ToString("B"); IEnvironmentManager environmentManager = new EnvironmentManager() as IEnvironmentManager; IServerEnvironment2 serverEnvironment = environmentManager.GetEnvironment(uid) as IServerEnvironment2; IPropertySet b = serverEnvironment.Properties; object[] name = new object[1]; object[] values = new object[1]; b.GetAllProperties(out name[0], out values[0]); object[] nameList = (object[])name[0]; object[] valueList = (object[])values[0];
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.