SPListItem.ContentTypeId Property

Gets the identifier of the content type that is associated with this item.

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


Public ReadOnly Property ContentTypeId As SPContentTypeId
Dim instance As SPListItem
Dim value As SPContentTypeId

value = instance.ContentTypeId
public SPContentTypeId ContentTypeId { get; }

Property Value

Type: Microsoft.SharePoint.SPContentTypeId
The content type identifier.

See Also


SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace