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

FieldAndContentTypeExtensions.BestMatch Method

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

Searches for the content type with the closest match to the value of the specified content type ID. If the search finds two matches, the shorter ID is returned.

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

Syntax

public static ContentTypeId BestMatch(this ContentTypeCollection contentTypes, String contentTypeId)

Parameters

contentTypes

  Type: Microsoft.SharePoint.Client.ContentTypeCollection
  Content type collection to search

contentTypeId

  Type: System.String
  Complete ID for the content type to search

Return Value

Type: ContentTypeId
Content type Id object or null if was not found

See also

© 2018 Microsoft