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

FieldAndContentTypeExtensions.FieldExistsByName Method

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

Returns if the field is found

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

Syntax

public static bool FieldExistsByName(this Web web, String fieldName, 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.

fieldName

  Type: System.String
  String for the field internal name to be used as query criteria

(optional) searchInSiteHierarchy

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

Return Value

Type: bool
True or false depending on the field existence

See also

© 2018 Microsoft