Condividi tramite


SPListItem.Name Property

Gets the name of the item.

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

Syntax

'Declaration
Public Property Name As String
    Get
    Friend Set
'Usage
Dim instance As SPListItem
Dim value As String

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

Property Value

Type: System.String
A string that contains the item name, which, for a document library item, equals the file name, including the file extension.

Remarks

Setting the name of a list item is not supported.

Note

Consider using the DisplayName property instead, which returns the name that is usually required in list item operations.

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace