SPSolutionExporter
public static void ExportWeb(SPWeb web, string solutionFilePath, string title, string description, ExportMode exportMode, bool includeContent)
public static string ExportWebToGallery(SPWeb web, string solutionFileName, string title, string description, ExportMode exportMode, bool includeContent)
public static string ExportWebToGallery(SPWeb web, string solutionFileName, string title, string description, ExportMode exportMode, bool includeContent, Action<string> solutionPostProcessor, bool activateSolution)
public static void ExportWorkFlowTemplate(SPWeb web, string solutionFilePath, string title, string description, string workflowTemplateName)
public static string ExportWorkflowToList(SPWeb web, string solutionFileName, string title, string description, string workflowTemplateName, string destinationListUrl)