Creates the portal.

Namespace: DotNetNuke.Entities.Portals
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public int CreatePortal(
	string portalName,
	UserInfo adminUser,
	string description,
	string keyWords,
	PortalController..::..PortalTemplateInfo template,
	string homeDirectory,
	string portalAlias,
	string serverPath,
	string childPath,
	bool isChildPortal
)
Visual Basic
Public Function CreatePortal ( 
	portalName As String,
	adminUser As UserInfo,
	description As String,
	keyWords As String,
	template As PortalController..::..PortalTemplateInfo,
	homeDirectory As String,
	portalAlias As String,
	serverPath As String,
	childPath As String,
	isChildPortal As Boolean
) As Integer

Parameters

portalName
Type: System..::..String
Name of the portal.
adminUser
Type: DotNetNuke.Entities.Users..::..UserInfo
The obj admin user.
description
Type: System..::..String
The description.
keyWords
Type: System..::..String
The key words.
template
Type: DotNetNuke.Entities.Portals..::..PortalController..::..PortalTemplateInfo
paramtemplateM:DotNetNuke.Entities.Portals.PortalController.CreatePortal(System.String,DotNetNuke.Entities.Users.UserInfo,System.String,System.String,DotNetNuke.Entities.Portals.PortalController.PortalTemplateInfo,System.String,System.String,System.String,System.String,System.Boolean)
homeDirectory
Type: System..::..String
The home directory.
portalAlias
Type: System..::..String
The portal alias.
serverPath
Type: System..::..String
The server path.
childPath
Type: System..::..String
The child path.
isChildPortal
Type: System..::..Boolean
if set to true means the portal is child portal.

Return Value

Portal id.

Implements

IPortalController..::..CreatePortal(String, UserInfo, String, String, PortalController..::..PortalTemplateInfo, String, String, String, String, Boolean)

See Also