How to determine if the Outlook folder is open?

I need a way to determine if an Outlook folder is open. I suspect there is a Microsoft.Office.Interop.Outlook property that will allow me to do this, but I cannot find it.

+3
source share
2 answers

If you can get the interface IMsgStoreassociated with the corresponding folder (sorry, I don’t know how to do this with pure C # - I recommend Redemption ), you can request a property PR_MDB_PROVIDERto see if it is pbExchangeProviderPublicGuid.

Update based on your answer to KG's answer:

, , StoreID - , .

+1

, , - - Exchange, FindFolder (. MSDN).

, , "", , @RedDeckWins.

UPDATE

# , Exchange Powershell ( ). , :

Get-PublicFolder -Recurse | Format-List Name

Powershell , #, , , ( ).

ARE #, StackOverflow: p >

0

Source: https://habr.com/ru/post/1780300/


All Articles