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

FieldAndContentTypeExtensions.RemoveContentTypeFromListByName Method

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

Removes content type from list

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

Syntax

public static void RemoveContentTypeFromListByName(this Web web, String listTitle, String contentTypeName)

Parameters

web

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

listTitle

  Type: System.String
  Title of the list

contentTypeName

  Type: System.String
  The name of the content type

Return Value

Type: void

See also

© 2018 Microsoft