Class PathUtils
Assembly: DotNetNuke.dll
Syntax
public class PathUtils : ComponentBase<IPathUtils, PathUtils>, IPathUtils
Methods
AddTrailingSlash(string)
Declaration
public virtual string AddTrailingSlash(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
Declaration
public virtual string FormatFolderPath(string folderPath)
Parameters
Type |
Name |
Description |
string |
folderPath |
|
Returns
GetPhysicalPath(int, string)
Declaration
public virtual string GetPhysicalPath(int portalID, string relativePath)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
relativePath |
|
Returns
GetRelativePath(int, string)
Declaration
public virtual string GetRelativePath(int portalID, string physicalPath)
Parameters
Type |
Name |
Description |
int |
portalID |
|
string |
physicalPath |
|
Returns
GetRootFolderMapPath(int)
Declaration
public virtual string GetRootFolderMapPath(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
GetUserFolderPath(UserInfo)
Declaration
public virtual string GetUserFolderPath(UserInfo user)
Parameters
Returns
GetUserFolderPathElement(int, UserFolderElement)
Declaration
public virtual string GetUserFolderPathElement(int userID, PathUtils.UserFolderElement mode)
Parameters
Returns
IsDefaultProtectedPath(string)
Declaration
public virtual bool IsDefaultProtectedPath(string folderPath)
Parameters
Type |
Name |
Description |
string |
folderPath |
|
Returns
MapPath(string)
Declaration
public virtual string MapPath(string path)
Parameters
Type |
Name |
Description |
string |
path |
|
Returns
RemoveTrailingSlash(string)
Declaration
public virtual string RemoveTrailingSlash(string source)
Parameters
Type |
Name |
Description |
string |
source |
|
Returns
StripFolderPath(string)
Declaration
public virtual string StripFolderPath(string originalPath)
Parameters
Type |
Name |
Description |
string |
originalPath |
|
Returns
Implements
Extension Methods