Removes the trailing slash or backslash from the specified source.

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public virtual string RemoveTrailingSlash(
	string source
)
Visual Basic
Public Overridable Function RemoveTrailingSlash ( 
	source As String
) As String

Parameters

source
Type: System..::..String
The source string to be modified.

Return Value

The original string minus the trailing slash.

Implements

IPathUtils..::..RemoveTrailingSlash(String)

See Also