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

FieldAndContentTypeExtensions.DeleteContentTypeByName Method

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

Deletes a content type from the web by name

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

Syntax

public static void DeleteContentTypeByName(this Web web, String contentTypeName)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Web to delete the content type from

contentTypeName

  Type: System.String
  Name of the content type to delete

Return Value

Type: void

See also

© 2018 Microsoft