SPUrlUtility.IsUrlRelative method
取得布林值,指出指定的 URL 相對的 URL,並不是完整的 URL。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function IsUrlRelative ( _
url As String _
) As Boolean
'用途
Dim url As String
Dim returnValue As Boolean
returnValue = SPUrlUtility.IsUrlRelative(url)
public static bool IsUrlRelative(
string url
)
參數
url
Type: System.String字串,包含 URL。
傳回值
Type: System.Boolean
true如果 URL 是相對的 URL。否則, false。