View Single Post
  #3  
Old November 29th 09, 09:40 PM posted to microsoft.public.outlook.program_addins
Mark B[_2_]
external usenet poster
 
Posts: 93
Default VSTO C#: How do I declare an application scope variable?

I guess ThisAddIn.cs then.


"Dmitry Streblechenko" wrote in message
...
As a member of the class that implements your add-in?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Mark B" wrote in message
...
C#, VSTO, OL2007

How do I declare an application-scope variable that will last as long as
the user has Outlook open?

String myApplicationScopeString="test";

I want other class methods to read and write to it over its lifetime.




Ads