internal bool TryGetTnefBinaryCharset(out Charset charset) { bool result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { PureTnefMessage pureTnefMessage = this.message as PureTnefMessage; if (pureTnefMessage == null) { MimeTnefMessage mimeTnefMessage = this.message as MimeTnefMessage; if (mimeTnefMessage != null && mimeTnefMessage.HasTnef) { pureTnefMessage = mimeTnefMessage.PureTnefMessage; } } if (pureTnefMessage != null) { charset = pureTnefMessage.BinaryCharset; result = true; } else { charset = null; result = false; } } return(result); }
internal bool TryGetMapiProperty <T>(TnefPropertyTag propertyTag, out T propValue) { this.ThrowIfDisposed(); bool result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { propValue = default(T); if (this.message.MapiProperties == null) { result = false; } else { object property = this.message.MapiProperties.GetProperty(propertyTag); if (property is T) { propValue = (T)((object)property); result = true; } else { result = false; } } } return(result); }
internal void Attachment_Dispose(AttachmentCookie cookie) { this.ThrowIfDisposed(); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { this.message.Attachment_Dispose(cookie); } }
internal void Attachment_SetFileName(AttachmentCookie cookie, string fileName) { this.ThrowIfDisposed(); this.ThrowIfReadOnly("Attachment_SetFileName"); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { this.message.Attachment_SetFileName(cookie, fileName); } }
internal void Attachment_SetAttachmentType(AttachmentCookie cookie, InternalAttachmentType attachmentType) { this.ThrowIfDisposed(); this.ThrowIfReadOnly("Attachment_SetAttachmentType"); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { this.message.Attachment_SetAttachmentType(cookie, attachmentType); } }
internal void Attachment_SetContentDisposition(AttachmentCookie cookie, string contentDisposition) { this.ThrowIfDisposed(); this.ThrowIfReadOnly("Attachment_SetContentDisposition"); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { this.message.Attachment_SetContentDisposition(cookie, contentDisposition); } }
internal void Normalize(NormalizeOptions normalizeOptions, bool allowUTF8 = false) { this.ThrowIfDisposed(); this.ThrowIfReadOnly("Normalize"); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { this.message.Normalize(normalizeOptions, allowUTF8); } }
internal void Attachment_SetEmbeddedMessage(AttachmentCookie cookie, EmailMessage embeddedMessage) { this.ThrowIfDisposed(); this.ThrowIfReadOnly("Attachment_SetEmbeddedMessage"); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { this.message.Attachment_SetEmbeddedMessage(cookie, embeddedMessage); } }
internal void AttachmentCollection_ClearAttachments() { this.ThrowIfDisposed(); this.ThrowIfReadOnly("AttachmentCollection_ClearAttachment"); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { this.message.AttachmentCollection_ClearAttachments(); } }
internal byte[] Attachment_GetAttachRendering(AttachmentCookie cookie) { this.ThrowIfDisposed(); byte[] result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetAttachRendering(cookie); } return(result); }
internal Stream Attachment_GetContentReadStream(AttachmentCookie cookie) { this.ThrowIfDisposed(); Stream result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetContentReadStream(cookie); } return(result); }
internal int AttachmentCollection_Count() { this.ThrowIfDisposed(); int result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.AttachmentCollection_Count(); } return(result); }
internal int Attachment_GetHashCode(AttachmentCookie cookie) { this.ThrowIfDisposed(); int result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetHashCode(cookie); } return(result); }
internal bool Attachment_GetAttachHidden(AttachmentCookie cookie) { this.ThrowIfDisposed(); bool result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetAttachHidden(cookie); } return(result); }
internal object AttachmentCollection_Indexer(int publicIndex) { this.ThrowIfDisposed(); object result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.AttachmentCollection_Indexer(publicIndex); } return(result); }
internal AttachmentMethod Attachment_GetAttachmentMethod(AttachmentCookie cookie) { this.ThrowIfDisposed(); AttachmentMethod result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetAttachmentMethod(cookie); } return(result); }
internal object GetMapiProperty(TnefPropertyTag tag) { this.ThrowIfDisposed(); object mapiProperty; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { mapiProperty = this.message.GetMapiProperty(tag); } return(mapiProperty); }
internal void CopyTo(EmailMessage destination) { this.ThrowIfDisposed(); using (ThreadAccessGuard.EnterPublic(this.accessToken)) { using (ThreadAccessGuard.EnterPublic(destination.accessToken)) { this.message.CopyTo(destination.message); } } }
internal string Attachment_GetFileName(AttachmentCookie cookie) { this.ThrowIfDisposed(); string result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetFileName(cookie, ref this.sequenceNumber); } return(result); }
internal MimePart Attachment_GetMimePart(AttachmentCookie cookie) { this.ThrowIfDisposed(); MimePart result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetMimePart(cookie); } return(result); }
internal EmailMessage Attachment_GetEmbeddedMessage(AttachmentCookie cookie) { this.ThrowIfDisposed(); EmailMessage result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetEmbeddedMessage(cookie); } return(result); }
internal bool Attachment_TryGetContentReadStream(AttachmentCookie cookie, out Stream result) { this.ThrowIfDisposed(); bool result2; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result2 = this.message.Attachment_TryGetContentReadStream(cookie, out result); } return(result2); }
internal AttachmentCookie AttachmentCollection_CacheAttachment(int publicIndex, object attachment) { this.ThrowIfDisposed(); AttachmentCookie result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.AttachmentCollection_CacheAttachment(publicIndex, attachment); } return(result); }
internal string Attachment_GetAttachContentLocation(AttachmentCookie cookie) { this.ThrowIfDisposed(); string result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.Attachment_GetAttachContentLocation(cookie); } return(result); }
internal MimePart Body_GetMimePart() { this.ThrowIfDisposed(); MimePart mimePart; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { IBody body = this.message.GetBody(); mimePart = body.GetMimePart(); } return(mimePart); }
internal BodyFormat Body_GetBodyFormat() { this.ThrowIfDisposed(); BodyFormat bodyFormat; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { IBody body = this.message.GetBody(); bodyFormat = body.GetBodyFormat(); } return(bodyFormat); }
internal string Body_GetCharsetName() { this.ThrowIfDisposed(); string charsetName; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { IBody body = this.message.GetBody(); charsetName = body.GetCharsetName(); } return(charsetName); }
internal Stream Body_GetContentReadStream() { this.ThrowIfDisposed(); Stream contentReadStream; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { IBody body = this.message.GetBody(); contentReadStream = body.GetContentReadStream(); } return(contentReadStream); }
internal bool Body_TryGetContentReadStream(out Stream stream) { this.ThrowIfDisposed(); bool result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { IBody body = this.message.GetBody(); result = body.TryGetContentReadStream(out stream); } return(result); }
internal bool AttachmentCollection_RemoveAttachment(AttachmentCookie cookie) { this.ThrowIfDisposed(); this.ThrowIfReadOnly("AttachmentCollection_RemoveAttachment"); bool result; using (ThreadAccessGuard.EnterPublic(this.accessToken)) { result = this.message.AttachmentCollection_RemoveAttachment(cookie); } return(result); }