SPListItem.ContentType Property

Gets the content type that is associated with the item.

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


<ClientCallableAttribute> _
Public ReadOnly Property ContentType As SPContentType
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


SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace