This topic has not yet been rated - Rate this topic

SPListItem.Name property

Gets the name of the item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
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.

Setting the name of a list item is not supported.

Note Note

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.