DevonTaig

Loop through PropertySet (GetAllProperties) C#

Discussion created by DevonTaig on Feb 10, 2011
Latest reply on Jan 29, 2014 by stephan086
I'm trying to simply enumerate through the name/value pairs in a IPropertySet.  I'm trying to use IPropertySet.GetAllProperties or GetProperties, but I'm apparently doing something wrong.

 
              
ESRI.ArcGIS.esriSystem.IPropertySet ps = ds.Workspace.ConnectionProperties;
int properties = ps.Count; //There may be 2-6 properties here probably
object names = new object();
object values = new object();
ps.GetProperties(names,out values);

Outcomes