I have a bunch of users running a 10.2.1 VB.Net extension, which assumes they have a particular MXD loaded. That MXD contains an existing ArcGIS Server layer (ie. not added programmatically by the extension):
I can get an ILayer reference to that layer using IMap.Layer([idx]), but the returned COM object does not seem to support any other interface. Casting it to IMapServerLayer, IMapServerSubLayer etc all return Nothing.
What interfaces should this object support, and how do I get a more useful object than ILayer out of it? (eg. to be able to perform spatial queries on it?)
أكثر...

I can get an ILayer reference to that layer using IMap.Layer([idx]), but the returned COM object does not seem to support any other interface. Casting it to IMapServerLayer, IMapServerSubLayer etc all return Nothing.
What interfaces should this object support, and how do I get a more useful object than ILayer out of it? (eg. to be able to perform spatial queries on it?)
أكثر...