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);
ESRI.ArcGIS.esriSystem.IPropertySet ps = ds.Workspace.ConnectionProperties;
int properties = ps.Count;
object[] nameArray = new object[1];
object[] valueArray = new object[1];
ps.GetAllProperties(out nameArray[0],out valueArray[0]);
object[] names = (object[]) nameArray[0];
object[] values = (object[])valueArray[0];
for(int i = 0; i < properties; i++)
{
string nameString = names.ToString();
string valueString = values.ToString();
}
This is UGLY, but seems to work. Weird and UGLY.ESRI.ArcGIS.esriSystem.IPropertySet ps = ds.Workspace.ConnectionProperties; int properties = ps.Count; object[] nameArray = new object[1]; object[] valueArray = new object[1]; ps.GetAllProperties(out nameArray[0],out valueArray[0]); object[] names = (object[]) nameArray[0]; object[] values = (object[])valueArray[0]; for(int i = 0; i < properties; i++) { string nameString = names.ToString(); string valueString = values.ToString(); }