SPFile.ToString Method

Returns the URL for the file based on the site or subsite URL.

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

public override string ToString()

Return Value

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