[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];
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.