Can I determine if an item is in a shared calendar?

  • Thread starter Tadwick
  • Start date Views 1,666
T

Tadwick

Given an item object, can I programmatically determine if it belongs to the

current user or is in a shared folder?
 
D

Dmitry Streblechenko

If you are using Outlook 2007, read the Parent property (returns MAPIFolder

object), then read the MAPIFolder.Store.ExchangeStoreType property - check

whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

Dmitry Streblechenko (MVP)

-

"Tadwick" <Tadwick> wrote in message

news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> Given an item object, can I programmatically determine if it belongs to
> the
> current user or is in a shared folder?
 
T

Tadwick

Thanks, Dmitry - I will try that

"Dmitry Streblechenko" wrote:


> If you are using Outlook 2007, read the Parent property (returns MAPIFolder
> object), then read the MAPIFolder.Store.ExchangeStoreType property - check
> whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "Tadwick" <Tadwick> wrote in message
> news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> > Given an item object, can I programmatically determine if it belongs to
> > the
> > current user or is in a shared folder?


>
 
T

Tadwick

Dmitry,

This doesn't work for shared folders:

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.store.aspx

"Tadwick" wrote:


> Thanks, Dmitry - I will try that

> "Dmitry Streblechenko" wrote:
>
> > If you are using Outlook 2007, read the Parent property (returns MAPIFolder
> > object), then read the MAPIFolder.Store.ExchangeStoreType property - check
> > whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.
> > > > Dmitry Streblechenko (MVP)
> >

> >

> >

> > -
> > "Tadwick" <Tadwick> wrote in message
> > news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> > > Given an item object, can I programmatically determine if it belongs to
> > > the
> > > current user or is in a shared folder?

> >
 
D

Dmitry Streblechenko

Hmmm.. So when you get Null from Folder.Store, you have a delegate folder...

Dmitry Streblechenko (MVP)

-

"Tadwick" <Tadwick> wrote in message

news:A50090FE-2E44-46A8-8CBA-F7DB53435DC1@microsoft.com...
> Dmitry,

> This doesn't work for shared folders:

> http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.store.aspx

> "Tadwick" wrote:
>
> > Thanks, Dmitry - I will try that
>

>> "Dmitry Streblechenko" wrote:
> >
> > > If you are using Outlook 2007, read the Parent property (returns
> > > MAPIFolder
> > > object), then read the MAPIFolder.Store.ExchangeStoreType property -
> > > check
> > > whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.
> >> > > > > Dmitry Streblechenko (MVP)
> > >

> > >

> > >

> > > -
> > > "Tadwick" <Tadwick> wrote in message
> > > news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> > > > Given an item object, can I programmatically determine if it belongs
> > > > to
> > > > the
> > > > current user or is in a shared folder?
> >>> >
 
T

Tadwick

yeah, that's the logic I'm running with :)

"Dmitry Streblechenko" wrote:


> Hmmm.. So when you get Null from Folder.Store, you have a delegate folder...

> > Dmitry Streblechenko (MVP)
>

>

>

> -
> "Tadwick" <Tadwick> wrote in message
> news:A50090FE-2E44-46A8-8CBA-F7DB53435DC1@microsoft.com...
> > Dmitry,
> > This doesn't work for shared folders:
> > http://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.store.aspx
> > "Tadwick" wrote:
> >
> >> Thanks, Dmitry - I will try that
> >
> >> "Dmitry Streblechenko" wrote:
> >
> >> > If you are using Outlook 2007, read the Parent property (returns
> >> > MAPIFolder
> >> > object), then read the MAPIFolder.Store.ExchangeStoreType property -
> >> > check
> >> > whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.
> >> >> > > >> > Dmitry Streblechenko (MVP)
> >> >

> >> >

> >> >

> >> > -
> >> > "Tadwick" <Tadwick> wrote in message
> >> > news:6EFC35C7-53E8-4566-A384-242107279282@microsoft.com...
> >> > > Given an item object, can I programmatically determine if it belongs
> >> > > to
> >> > > the
> >> > > current user or is in a shared folder?
> >> >> >> >


>
 
Top