ListItem.ContentType property

Gets a value that specifies the content type of the list item.

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

Syntax

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

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

Property value

Type: Microsoft.SharePoint.Client.ContentType
Returns a ContentType.instance representing the content type of the list item.

Remarks

It must be a null reference (Nothing in Visual Basic) if the list item has no content type.

See also

Reference

ListItem class

ListItem members

Microsoft.SharePoint.Client namespace