Пример #1
0
 internal MapiTableWrapper(MapiTable mapiTable, MapiMessageStoreSession mapiSession, MapiObjectId mapiObjectId)
 {
     this.mapiTable      = mapiTable;
     this.mapiSession    = mapiSession;
     this.mapiObjectId   = mapiObjectId;
     this.disposeTracker = this.GetDisposeTracker();
 }
Пример #2
0
        private static string GetFolderLegacyDistinguishedName(MapiEntryId abEntryId, MapiFolder folder)
        {
            string result;

            try
            {
                if (null == abEntryId)
                {
                    if (folder == null)
                    {
                        throw new ArgumentNullException("folder");
                    }
                    PropValue prop = folder.GetProp(PropTag.AddressBookEntryId);
                    if (PropType.Error == prop.PropType)
                    {
                        return(null);
                    }
                    abEntryId = new MapiEntryId(prop.GetBytes());
                }
                result = MapiMessageStoreSession.GetLegacyDNFromAddressBookEntryId(abEntryId);
            }
            catch (MapiPermanentException)
            {
                result = null;
            }
            catch (MapiRetryableException)
            {
                result = null;
            }
            return(result);
        }