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

FieldAndContentTypeExtensions.FieldExistsById Method

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

Does field exist in web

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

Syntax

public static bool FieldExistsById(this Web web, String fieldId, Boolean searchInSiteHierarchy = False)

Parameters

web

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

fieldId

  Type: System.String
  String representation of the field ID (=guid)

(optional) searchInSiteHierarchy

  Type: System.Boolean
  If true, search parent sites and root site

Return Value

Type: bool
True if exists, false otherwise

See also

© 2018 Microsoft