SPHttpUtility.UrlPathDecode Method
Decodes the specified encoded path part of a URL.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function UrlPathDecode ( _
urlToDecode As String, _
allowHashParameter As Boolean _
) As String
'Usage
Dim urlToDecode As String
Dim allowHashParameter As Boolean
Dim returnValue As String
returnValue = SPHttpUtility.UrlPathDecode(urlToDecode, _
allowHashParameter)
public static string UrlPathDecode(
string urlToDecode,
bool allowHashParameter
)
Parameters
urlToDecode
Type: System.StringA string that contains the encoded path.
allowHashParameter
Type: System.Booleantrue if the decode operation can include a hash parameter; otherwise, false.
Return Value
Type: System.String
A string that contains the decoded path.
Remarks
To encode the path part of a URL, use the UrlPathEncode method.