Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
SPListItem Class
 ContentType Property

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
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)
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.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker