Click or drag to resize
ExportProviderExportObject Method (Int32, String, String, String, IUserInfo)
Export site to file.

Namespace: CMS.CMSImportExport
Assembly: CMS.ImportExport (in CMS.ImportExport.dll) Version: 9.0.0
Syntax
C#
public static void ExportObject(
	int objectId,
	string objectType,
	string fullExportFilePath,
	string websitePath,
	IUserInfo userInfo
)

Parameters

objectId
Type: SystemInt32
Exported object ID
objectType
Type: SystemString
Exported object type
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)
userInfo
Type: CMS.BaseIUserInfo
Current user info
See Also