VSTO Outlook addin need to save settings, best way?

后端 未结 2 1656
故里飘歌
故里飘歌 2021-02-05 05:04

I\'m writing a VSTO Outlook add in and i need to save some settings the addin gets from a web service. What is the best way to do this. Registry? does the VSTO addin have full

2条回答
  •  独厮守ぢ
    2021-02-05 05:31

    You can use a Settings file as per @Keith's answer.

    There's some discussion in the comments of that answer saying that the settings will be lost if the Office version is upgraded, because the path to the settings file includes the Office version number.

    While that's true, there's an easy solution - simply use settings.Upgrade.

提交回复
热议问题