List.ContentTypes property

Gets the content types that are associated with the list.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public ReadOnly Property ContentTypes As ContentTypeCollection
    Get
'Usage
Dim instance As List
Dim value As ContentTypeCollection

value = instance.ContentTypes
public ContentTypeCollection ContentTypes { get; }

Property value

Type: Microsoft.SharePoint.Client.ContentTypeCollection
A ContentTypeCollection collection that contains the content types that are associated with the list.

Exceptions

Exception Condition
[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

Remarks

It must not be a null reference (Nothing in Visual Basic).

See also

Reference

List class

List members

Microsoft.SharePoint.Client namespace