SPListItem.Url property

Gets the site-relative URL of the item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

public string Url { get; }

Property value

Type: System.String
A string that contains the URL.

Remarks

If the list has an external data source, this property returns an empty string.

See also

Reference

SPListItem class

SPListItem members

Microsoft.SharePoint namespace