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

Return value

Type: System.Boolean
true if the character can be used in a URL; otherwise, false.

See also

Reference

SPUrlUtility class

SPUrlUtility members

Microsoft.SharePoint.Utilities namespace