internal MapiTableWrapper(MapiTable mapiTable, MapiMessageStoreSession mapiSession, MapiObjectId mapiObjectId) { this.mapiTable = mapiTable; this.mapiSession = mapiSession; this.mapiObjectId = mapiObjectId; this.disposeTracker = this.GetDisposeTracker(); }
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); }