Thanks, but how would you retrieve the IFeatureLayer, given only it's name?
–
Seth P.Mar 28 '11 at 18:40

That would depend on what you're trying to get the layer from. Whether its a desktop tool working with an MXD, ArcObjects code working on server, etc. Generally though if you can get an IMap object, you can loop through all the layers by calling map.get_Layers() and use the layer name to find the right ILayer object, then cast that ILayer object to an IFeatureLayer (if it in fact implements IFeatureLayer).
–
Sasa IveticMar 28 '11 at 18:54

It's a desktop tool working with an iWorkspace object based on an SDE service.
–
Seth P.Mar 28 '11 at 20:16