Web.ContentTypes property

Gets the collection of content types for the Web site.

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

public ContentTypeCollection ContentTypes { get; }

Property value

Type: Microsoft.SharePoint.Client.ContentTypeCollection
A ContentTypeCollection object that represents the content types.

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

Show: