Table of contents
TOC
Collapse the table of content
Expand the table of content

FieldAndContentTypeExtensions.SetDefaultContentTypeToList Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Set default content type to list

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static void SetDefaultContentTypeToList(this Web web, List list, ContentType contentType)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Site to be processed - can be root web or sub site

list

  Type: Microsoft.SharePoint.Client.List
  List to update

contentType

  Type: Microsoft.SharePoint.Client.ContentType
  Content type to make default

Return Value

Type: void

See also

© 2018 Microsoft