Needed to programmatically ensure that Record Declaration settings were set for a customer’s site template.
Found this blog entry: http://sharepointfieldnotes.blogspot.com/2010/08/making-your-sharepoint-2010.html
To summarize the information in the blog entry:
The referenced blog post provides code samples to check values using the logic described above. The rest of the blog post goes on to show how to check if a specific user can manually declare a record; how to check if a file is a record; how to actually declare—or undeclared—and item as a record (using code); and how to determine record restrictions (settings that can also be set using the UI’s Record Restrictions section.
In any case, I highly recommend reading through the post I’ve referenced above. I’ve summarized the information here just in case the referenced post gets taken down for some reason. But that post does a much better, much more thorough and useful job of explaining how this all works.