I have successfully opened a geodatabase using propertyset. the code is as given below:
public IWorkspace FileGdbWorkspaceFromPropertySet(string database)
{
try
{
IPropertySet propertySet = new PropertySetClass();
propertySet.SetProperty("DATABASE", database);
IWorkspaceFactory workspaceFactory = new FileGDBWorkspaceFactoryClass();
return workspaceFactory.Open(propertySet, 0);
}
catch (System.Runtime.InteropServices.COMException Exp)
{
MessageBox.Show(Exp.Message + "\n" + Exp.StackTrace);
return null;
}
}
Now I need to populate a listbox with the name of all the featureclasses present inside the geodatabase.Please help me to solve this....Thanks.....!