Back Inappropriate taxonomy collection usage

RESP510227

Description

Avoid string based index call on taxonomy collection because it could be localized or case -sensitive.

The following collections are checked:

  • Microsoft.SharePoint.Taxonomy.GroupCollection
  • Microsoft.SharePoint.Taxonomy.TermSetCollection
  • Microsoft.SharePoint.Taxonomy.TermCollection
  • Microsoft.SharePoint.Taxonomy.TermStoreCollection

Resolution

Consider fetching item by GUID, string comporation by collection enumeration, GetById() or GetByName() methods.

Links

Last updated: 1/9/2016
Comments
Login to leave a comment.