SPList Properties


SPList.ContentTypes Property (Microsoft.SharePoint)
Gets the content types that are associated with the list.

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

Visual Basic (Declaration)
Public ReadOnly Property ContentTypes As SPContentTypeCollection
Visual Basic (Usage)
Dim instance As SPList
Dim value As SPContentTypeCollection

value = instance.ContentTypes
C#
public SPContentTypeCollection ContentTypes { get; }

Property Value

An SPContentTypeCollection collection that contains the content types that are associated with the list.
See Also

Tags :


Page view tracker