Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.