SPEncode.IsLegalCharInUrl method

Returns a Boolean value that indicates whether the specified character is a legal character in Universal Resource Locator (URL) protocol.

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

Syntax

'Declaration
Public Shared Function IsLegalCharInUrl ( _
    ch As Char _
) As Boolean
'Usage
Dim ch As Char
Dim returnValue As Boolean

returnValue = SPEncode.IsLegalCharInUrl(ch)
public static bool IsLegalCharInUrl(
    char ch
)

Parameters

  • ch
    Type: System.Char

    A System.Char object that represents the character to evaluate.

Return value

Type: System.Boolean
If true, the character is legal in URL protocol; otherwise, false.

See also

Reference

SPEncode class

SPEncode members

Microsoft.SharePoint.Utilities namespace