// Token: 0x06000496 RID: 1174 RVA: 0x00018950 File Offset: 0x00016B50
        internal static Exception Dismount(Guid mdbGuid, UnmountFlags flags)
        {
            Exception result = null;

            if ((flags & UnmountFlags.SkipCacheFlush) == UnmountFlags.SkipCacheFlush)
            {
                result = AmStoreHelper.DismountWithKillOnTimeout(mdbGuid, flags, true);
            }
            else
            {
                try
                {
                    AmStoreHelper.RemoteDismount(null, mdbGuid, flags, true);
                }
                catch (MapiRetryableException ex)
                {
                    result = ex;
                }
                catch (MapiPermanentException ex2)
                {
                    result = ex2;
                }
            }
            return(result);
        }