SPListItem.DisplayName Property

Gets the display 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
<ClientCallablePropertyAttribute(ExcludeFromDefaultRetrieve := True)> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotEmpty)> _
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
Public ReadOnly Property DisplayName As String
    Get
'Usage
Dim instance As SPListItem
Dim value As String

value = instance.DisplayName
[ClientCallablePropertyAttribute(ExcludeFromDefaultRetrieve = true)]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotEmpty)]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public string DisplayName { get; }

Property Value

Type: System.String
A string that contains the item display name, which for a document library item equals what the user types in the Name box of the item form. The default value equals the original name of the uploaded file minus the file type extension.

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace