I am getting a problem: my SDE contains some feature classes, but after using the statement:

var namesEnum = workspace.DatasetNames[esriDatasetType.esriDTFeatureClass];
var tempName = namesEnum.Next(); // get value null

The value of tempName is Null, but it is ok if I use esriDatasetType.esriDTFeatureDataset.

1 Answer 1


You have answered your own question, your FeatureClasses must all be in FeatureDatasets.

In help for this method it says:

In order to get the feature class names within a feature dataset, the application needs to get the FeatureClassNames property on the top-level feature dataset name returned by the workspace.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.