SPListItem.ContentType Property (Microsoft.SharePoint)
Gets the content type that is associated with the item.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property ContentType As SPContentType
Visual Basic (Usage)
Dim instance As SPListItem
Dim value As SPContentType

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

Property Value

An SPContentType object that represents the content type.
See Also

Tags :


Page view tracker