This topic has not yet been rated - Rate this topic

SPListItem.Url Property

Gets the site-relative URL of the item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public string Url { get; }

Property Value

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

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ