SPUrlUtility.IsLegalCharInUrl Method
Gets a Boolean value that indicates whether the specified character can be used in 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 IsLegalCharInUrl ( _
character As Char _
) As Boolean
'Usage
Dim character As Char
Dim returnValue As Boolean
returnValue = SPUrlUtility.IsLegalCharInUrl(character)
public static bool IsLegalCharInUrl(
char character
)
Parameters
character
Type: System.CharA 16-bit Char representing the character.
Return Value
Type: System.Boolean
true if the character can be used in a URL; otherwise, false.