Has anyone had any success of repairing disconnected layers that have selection sets that have their data sources broken in ArcGIS? Is there a way to detect this through code and then re-create that selection set?
I tried:
IFeatureLayerDefinition.DefinitionSelectionSet.Count
and
IFeatureSelection.SelectionSet.Count
of which just give an "Object reference not set to an instance of an object" error.
We are on version 10.0 and code in VB.NET or C#.