Returning a feature class as an output parameter ArcObjects Toolbox Tool

Discussion created by ahigh2 on Nov 14, 2011
Latest reply on Nov 16, 2011 by Hornbydd

I've been working on writing some ArcObjects tools for use in a toolbox that will ultimately be published to ArcGIS Server. I'm having some trouble in an attempt to return a feature class as a parameter. I've attempted to use the SetParamaterValue() in the IGeoProcessor2 interface to return it, however it will consistently crash the toolbox in Arc when I set it to expect an output feature class. I can't seem to find any documentation for doing this in ArcObjects .NET aside from returning strings. I know it can be done in ArcPy, so I assume there is a way in ArcObjects .NET.