Programmatically determining whether a List Item is a Record

Was trying to find this one, and the path / references aren’t all that clear.  So…

  1. Add a reference to Microsoft.Office.Policy
  2. In the Usings add using Microsoft.Office.RecordsManagement.RecordsRepository
  3. Get the ListItem or File
  4. Records.IsRecord(item) returns true or false if it is a record

The key bit is figuring out RecordsManagement.RecordsRepository is part of Microsoft.Office.Policy.



Posted on October 11, 2012, in SharePoint and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: