I see a number of answers on StackOverflow suggesting to use PR_SEARCH_KEY for getting a unique identifier of Outlook.MailItem (and, presumably, Outlook.Folder) this way in VSTO (for Outlook 2007 - 2016):
Folder.PropertyAccessor.BinaryToString(Folder.PropertyAccessor.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x300B0102");
However, this throws a COMException (0x8004010F):
The property "http://schemas.microsoft.com/mapi/proptag/0x300B0102" is unknown or cannot be found.
From the answer below it looks like this is irrelevant, but I tried to open http://schemas.microsoft.com/mapi/proptag/0x300B0102 in a web browser which resulted in
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Is there a different DASL property tag I should be using? Is there a different way to get PR_SEARCH_KEY these days? Is there a different unique identifier that has replaced PR_SEARCH_KEY?
Looking the folder with OutlookSpy, I see the following - no PR_SEARCH_KEY... it's the first time I use OutlookSpy, so I can't tell if this looks suspicious or not.