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's default content type list.

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

Syntax

public static void SetDefaultContentTypeToList(this List list, String contentTypeId)

Parameters

list

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

contentTypeId

  Type: System.String
  Complete ID for the content type

Return Value

Type: void

Remarks

Notice. Currently removes other content types from the list. Known issue

See also

© 2018 Microsoft