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)

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