Offline Records

Spending most of my life in the server side world of web services I rarely pay much attention to offline records in HPRM, other people obviously do given that twice in the past week I have been asked questions about searching for them.

Firstly, it will not work from a web service, offline records require access to the user's local machine.

Now, how do I search from the SDK? Just as I would search for any other object type it turns out.

TrimMainObjectSearch search 
   = new TrimMainObjectSearch(database, BaseObjectTypes.OfflineRecord);

foreach (OfflineRecord offlineRec in search)