共用方式為


IsLegalCharInUrl Method

The IsLegalCharInUrl method of the SPEncode class returns a Boolean value that indicates whether the specified character is a legal character in URL protocol.

Parameters

ch   A System.Char object that represents the character to evaluate.

Return Value

true if the character is legal in URL protocol; otherwise, false.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security