Removes the trailing slash or backslash from the specified source.

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

Syntax

C#
string RemoveTrailingSlash(
	string source
)
Visual Basic
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.

See Also