Gets the content type that is associated with the item.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public ReadOnly Property ContentType As SPContentType
Dim instance As SPListItem
Dim value As SPContentType
value = instance.ContentType
public SPContentType ContentType { get; }
Property Value
An SPContentType object that represents the content type.