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

FieldAndContentTypeExtensions.CreateField Method

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

Create field to web remotely

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

Syntax

public static Field CreateField(this Web web, String fieldAsXml, Boolean executeQuery = True)

Parameters

web

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

fieldAsXml

  Type: System.String
  The XML declaration of SiteColumn definition

(optional) executeQuery

  Type: System.Boolean
  Executes query if true

Return Value

Type: Field
The newly created field or existing field.

See also

© 2018 Microsoft