Click or drag to resize
ImportProviderImportSite Method
Import site from the file.

Namespace: CMS.CMSImportExport
Assembly: CMS.ImportExport (in CMS.ImportExport.dll) Version: 12.0.0
Syntax
C#
public static void ImportSite(
	string siteName,
	string siteDisplayName,
	string siteDomain,
	string fullSourcePath,
	string websitePath,
	IUserInfo currentUser
)

Parameters

siteName
Type: SystemString
Site name
siteDisplayName
Type: SystemString
Site display name
siteDomain
Type: SystemString
Site domain
fullSourcePath
Type: SystemString
Full path to the source file
websitePath
Type: SystemString
Path to the web site root(optional)
currentUser
Type: CMS.BaseIUserInfo
Current user info
See Also