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)

Syntax

'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As SPFile
Dim returnValue As String

returnValue = instance.ToString()
public override string ToString()

Return value

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

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace