Click or drag to resize
ExportProviderExportSite Method
Export site to file.

Namespace: CMS.CMSImportExport
Assembly: CMS.ImportExport (in CMS.ImportExport.dll) Version: 13.0.131
Syntax
C#
public static void ExportSite(
	string siteName,
	string fullExportFilePath,
	string websitePath,
	bool template,
	IUserInfo userInfo
)

Parameters

siteName
Type: SystemString
Site name of the exported site
fullExportFilePath
Type: SystemString
Full path to the target file(for example c:\export\filename.zip)
websitePath
Type: SystemString
Path to the web site root(If there is the HttpContext available, the parameter can be null)
template
Type: SystemBoolean
Indicates if the web template should be exported
userInfo
Type: CMS.BaseIUserInfo
Current user info
See Also