SPLink.IsInternal Property

Gets a Boolean value that indicates whether the link goes to or from a page within the current Web site.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property IsInternal As Boolean
    Get
'Usage
Dim instance As SPLink
Dim value As Boolean

value = instance.IsInternal
public bool IsInternal { get; }

Property Value

Type: System.Boolean
true if the link is internal to the Web site; otherwise, false.

Remarks

Links to or from pages outside the current Web site are external.

You can differentiate between external links within the server and external links outside the server by using the ServerRelativeUrl property. Only links within the server have a non-NULL, server-relative URL.

See Also

Reference

SPLink Class

SPLink Members

Microsoft.SharePoint Namespace