SPFile.Name property

Gets the name of the file including the extension.

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

Syntax

'Declaration
Public ReadOnly Property Name As String
    Get
'Usage
Dim instance As SPFile
Dim value As String

value = instance.Name
public string Name { get; }

Property value

Type: System.String
A string that contains the file name, including the extension.

See also

Reference

SPFile class

SPFile members

Microsoft.SharePoint namespace