session handling In outlook

N

Neetu

what are the different ways to store session variables available in outlook?
Is session variable handling is same as in asp.net?
can we kep key and value pair of session variable in outlook?
 
D

Dmitry Streblechenko

What session variables do you mean?
Global variables? Unlike ASP (which is stateless), you can store any values
in global variables in your code.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
N

Neetu

Hello Dmitry,

I need to store variable of any type, like user define class or .net built
type.
 
D

Dmitry Streblechenko

What exactly do you mean by a "session variable"? There is no such thing as
"session" in a COM add-in.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
N

Neetu

Hello ,
I am creating folders inside outlook using c#, VSTO Just after "task" folder.
On click of each custom folder i need some values from clicked folder,( some
id etc) . these field should be hidden from end user.

for thought of session variable attached with folders inside outlook.

is there any way to acheive this??
 
D

Dmitry Streblechenko

If you only that custom data to persist for the duration of your app,
nothing prevents you from having a wrapper class that stores both the
MAPIFolder object and your csutom data or a list/dictionary that you can
index based on the folder entry id (MAPIFolder.EntryID).
If you need to persist the per-folder data, use MAPIFolder.GetStorage
(Outlook 2007)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top