PC Review


Reply
Thread Tools Rate Thread

basic question:is it common to cache outlook objects like namespace,default folders etc?

 
 
tomer
Guest
Posts: n/a
 
      13th Jan 2004

a basic question but I need your help,
Is it common to cache outlook objects like namespace,default folder(contacts
for example)
Or should I ask them from outlook whenever I need them?
I have a feeling that it is take some time to get the Namespace object for
example.

oh....I am talking about add in VB.

Thanks in advance.




 
Reply With Quote
 
 
 
 
Dmitry Streblechenko \(MVP\)
Guest
Posts: n/a
 
      14th Jan 2004
In general, it won't hurt, unless you cache too many Outlook objects.
If you are running Outlook without displaying its UI, make sure you *do*
cache an instance of Namespace and keep it referenced at all times. Also
make sure that you call Namespace.Logon. If Outlook has already acquired a
MAPI session, Namespace.Logon won't do anything, so no harm is done.
If your code is in an add-in, you don't have to do that.

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


"tomer" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> a basic question but I need your help,
> Is it common to cache outlook objects like namespace,default

folder(contacts
> for example)
> Or should I ask them from outlook whenever I need them?
> I have a feeling that it is take some time to get the Namespace object for
> example.
>
> oh....I am talking about add in VB.
>
> Thanks in advance.
>
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup the personal common folders back to default? Steve Karsidi Windows Vista Installation 4 9th Jan 2008 10:55 AM
Basic namespace question Geoff Pennington Microsoft Dot NET 2 14th Oct 2004 03:58 PM
Question about objects in Cache Joe Fallon Microsoft ASP .NET 9 7th Oct 2004 03:31 PM
Basic Output Cache Question Jon Microsoft ASP .NET 1 23rd Feb 2004 09:12 PM
Question regarding objects and cache NWx Microsoft ASP .NET 0 19th Feb 2004 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 AM.