Share via


SPListItem.ContentType property

Gets the content type that is associated with the item.

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

Syntax

'Declaration
Public ReadOnly Property ContentType As SPContentType
    Get
'Usage
Dim instance As SPListItem
Dim value As SPContentType

value = instance.ContentType
public SPContentType ContentType { get; }

Property value

Type: Microsoft.SharePoint.SPContentType
An SPContentType object that represents the content type.

See also

Reference

SPListItem class

SPListItem members

Microsoft.SharePoint namespace