Condividi tramite


SPUrlUtility.IsUrlRelative Method

Gets a Boolean value indicating whether the specified URL is a relative URL and not a full 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 IsUrlRelative ( _
    url As String _
) As Boolean
'Usage
Dim url As String
Dim returnValue As Boolean

returnValue = SPUrlUtility.IsUrlRelative(url)
public static bool IsUrlRelative(
    string url
)

Parameters

Return Value

Type: System.Boolean
true if the URL is a relative URL; otherwise, false.

See Also

Reference

SPUrlUtility Class

SPUrlUtility Members

Microsoft.SharePoint.Utilities Namespace