Creates the root folder for a child portal.
Namespace: DotNetNuke.Entities.PortalsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string CreateChildPortalFolder( string ChildPath ) |
Visual Basic |
---|
Public Shared Function CreateChildPortalFolder ( ChildPath As String ) As String |
Parameters
- ChildPath
- Type: System..::..String
The child path.
Return Value
If the method executed successful, it will return NullString, otherwise return error message.
Remarks
If call this method, it will create the specific folder if the folder doesn't exist;
and will copy subhost.aspx to the folder if there is no 'Default.aspx';
Examples
C# | ![]() |
---|---|
string childPhysicalPath = Server.MapPath(childPath);
message = PortalController.CreateChildPortalFolder(childPhysicalPath); |