다음을 통해 공유


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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