Shane Chin
Shane Chin

Reputation: 576

How to save state within a microsoft outlook 2010 addin?

I have a Ribbon Edit Box within my outlook 2010 add-in, and I would like to save state, the user will input some text, and click a check box to store that text so that they will not have to reenter it every time they open Outlook.

More specifically would this kind of thing be stored in application data? ini files? maybe the registry? A C# code example would be greatly appreciated.

My question is more about best practices then implementation, although implementation details would be useful.

Upvotes: 0

Views: 822

Answers (1)

Andy
Andy

Reputation: 8562

Store it in LocalApplicationData path. Use System.Envrionment.SpecialFolders to get the path. Just create a folder under that special folder for your add-in data, and create a file to store whatever you need there.

Upvotes: 1

Related Questions