Export (0) Print
Expand All

VirtualPathUtility.AppendTrailingSlash Method

Appends the literal slash mark (/) to the end of the virtual path, if one does not already exist.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

'Declaration
Public Shared Function AppendTrailingSlash ( _
	virtualPath As String _
) As String

Parameters

virtualPath
Type: System.String

The virtual path to append the slash mark to.

Return Value

Type: System.String
The modified virtual path.

If the literal slash mark (/) exists at the end of the virtual path, the virtual path is not modified.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft