// Token: 0x06001AD3 RID: 6867 RVA: 0x00065D98 File Offset: 0x00063F98 private static IdAndSession GetIdAndSession(CallContext callContext, string id, bool isAttachmentId) { IdAndSession idAndSession; try { if (isAttachmentId) { idAndSession = new IdConverter(callContext).ConvertAttachmentIdToIdAndSessionReadOnly(id); } else { idAndSession = new IdConverter(callContext).ConvertItemIdToIdAndSessionReadOnly(id); } if (idAndSession == null) { List <AttachmentId> attachmentIds = new List <AttachmentId>(); IdHeaderInformation idHeaderInformation = IdConverter.ConvertFromConcatenatedId(id, BasicTypes.Attachment, attachmentIds, false); throw new OwaInvalidRequestException("Unsupported Attachment ID. Storage type: " + idHeaderInformation.IdStorageType); } } catch (InvalidStoreIdException) { throw new OwaInvalidRequestException("Invalid attachment ID: " + id); } catch (AccessDeniedException) { throw new OwaInvalidRequestException("You do not have permission to access this mailbox."); } if (idAndSession.Session == null) { throw new OwaInvalidRequestException("The mailbox was not specified."); } return(idAndSession); }