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

FieldAndContentTypeExtensions.CreateContentType Method

SharePoint Dev Documents|Last Updated: 6/19/2017
|
1 Contributor

Create new content type to web

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

Syntax

public static ContentType CreateContentType(this Web web, String name, String id, String group)

Parameters

web

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

name

  Type: System.String
  Name of the content type

id

  Type: System.String
  Complete ID for the content type

group

  Type: System.String
  Group for the content type

Return Value

Type: ContentType
Returns newly created content type

See also

© 2018 Microsoft