SPUrlUtility.IsLegalCharInUrl method
取得布林值,這個值,指出是否可以在 URL 中使用指定的字元。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsLegalCharInUrl ( _
character As Char _
) As Boolean
'用途
Dim character As Char
Dim returnValue As Boolean
returnValue = SPUrlUtility.IsLegalCharInUrl(character)
public static bool IsLegalCharInUrl(
char character
)
參數
character
Type: System.Char表示該字元 16 位元Char 。
傳回值
Type: System.Boolean
true如果可以使用的字元在 URL 中 ;否則, false。