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

Syntax

'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property ContentType As SPContentType
    Get
'Usage
Dim instance As SPListItem
Dim value As SPContentType

value = instance.ContentType
[ClientCallableAttribute]
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