Compartilhar via


ListItem.ContentType Property

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

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public ReadOnly Property ContentType As ContentType
    Get
'Usage
Dim instance As ListItem
Dim value As ContentType

value = instance.ContentType
[RemoteAttribute]
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