Condividi tramite


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

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