SPHttpUtility.UrlPathDecode method

Decodes the specified encoded path part of a URL.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

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.String

    A string that contains the encoded path.

  • allowHashParameter
    Type: System.Boolean

    true 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.

See also

Reference

SPHttpUtility class

SPHttpUtility members

Microsoft.SharePoint.Utilities namespace