Gets the content types that are associated with the list.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public ReadOnly Property ContentTypes As SPContentTypeCollection
Dim instance As SPList
Dim value As SPContentTypeCollection
value = instance.ContentTypes
public SPContentTypeCollection ContentTypes { get; }
Property Value
An SPContentTypeCollection collection that contains the content types that are associated with the list.