SPSolutionExporter Class
SharePoint 2010
Provides static methods for exporting a Web site as a SharePoint Foundation Web template and for exporting a custom workflow as a workflow template.
Namespace:
Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No