View Single Post
  #2  
Old January 12th 06, 05:09 AM posted to microsoft.public.outlook.program_addins
jim
external usenet poster
 
Posts: 26
Default Redemption MAPITable

I am trying to use MAPITable to speed up retrieval. I am using C#, but
it gives an exception: "IMAPITable::SetColumns() returned 0x80070057".
What object in C# do I need to pass to table.Columns ?

NameSpace ns = this.OutlookApp.GetNamespace("MAPI");
MAPIFolder folder = ns.GetDefaultFolder(OlDefaultFolders.olFolderConta cts);
Redemption.MAPITable table = new Redemption.MAPITableClass();
table.Item = folder.Items;

object[] cols = new object[]{0x3001};
table.Columns = cols;
table.GoToFirst();
Ads