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