// Token: 0x0600144E RID: 5198 RVA: 0x000750E0 File Offset: 0x000732E0
        private Stream GetRtfData(long truncationSize, out long totalDataSize, out IList <AttachmentLink> attachmentLinks)
        {
            if (truncationSize == 0L)
            {
                totalDataSize   = this.Size;
                attachmentLinks = null;
                return(XsoContentProperty.emptyStream);
            }
            Item item = (Item)base.XsoItem;

            item.Load();
            return(BodyConversionUtilities.ConvertToRtfStream(item, truncationSize, out totalDataSize, out attachmentLinks));
        }
예제 #2
0
        // Token: 0x06001395 RID: 5013 RVA: 0x00070AF4 File Offset: 0x0006ECF4
        public static Stream ConvertToBodyStream(Item item, long truncationSize, out long totalDataSize, out IList <AttachmentLink> attachmentLinks)
        {
            Microsoft.Exchange.Data.Storage.BodyFormat format = item.Body.Format;
            switch (format)
            {
            case Microsoft.Exchange.Data.Storage.BodyFormat.TextPlain:
                return(BodyConversionUtilities.ConvertToPlainTextStream(item, truncationSize, out totalDataSize, out attachmentLinks));

            case Microsoft.Exchange.Data.Storage.BodyFormat.TextHtml:
                return(BodyConversionUtilities.ConvertHtmlStream(item, truncationSize, out totalDataSize, out attachmentLinks));

            case Microsoft.Exchange.Data.Storage.BodyFormat.ApplicationRtf:
                return(BodyConversionUtilities.ConvertToRtfStream(item, truncationSize, out totalDataSize, out attachmentLinks));

            default:
                throw new ConversionException("Unsupported bodyFormat for this function: " + format);
            }
        }