using System; using System.IO; using System.Net.Mime; using Cpp2IlInjected; namespace System.Net.Mail { /// Base class that represents an email attachment. Classes , , and derive from this class. // Token: 0x020002B5 RID: 693 [Token(Token = "0x20002B5")] public abstract class AttachmentBase : IDisposable { /// Instantiates an with the specified and . /// A stream containing the content for this attachment. /// The type of the content. /// /// is . /// /// is not a valid value. // Token: 0x06001238 RID: 4664 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001238")] [Address(RVA = "0x2225EC0", Offset = "0x2224CC0", VA = "0x182225EC0")] protected AttachmentBase(Stream contentStream, ContentType contentType) { } /// Instantiates an with the specified and media type. /// A stream containing the content for this attachment. /// The MIME media type of the content. /// /// is . /// /// is not a valid value. // Token: 0x06001239 RID: 4665 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001239")] [Address(RVA = "0x2225FD0", Offset = "0x2224DD0", VA = "0x182225FD0")] protected AttachmentBase(Stream contentStream, string mediaType) { } /// Gets or sets the MIME content ID for this attachment. /// A holding the content ID. /// Attempted to set to . // Token: 0x170003B3 RID: 947 // (get) Token: 0x0600123A RID: 4666 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x170003B3")] public string ContentId { [Token(Token = "0x600123A")] [Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")] get { return null; } } /// Gets the content stream of this attachment. /// The content stream of this attachment. // Token: 0x170003B4 RID: 948 // (get) Token: 0x0600123B RID: 4667 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x170003B4")] public Stream ContentStream { [Token(Token = "0x600123B")] [Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")] get { return null; } } /// Gets the content type of this attachment. /// The content type for this attachment. // Token: 0x170003B5 RID: 949 // (get) Token: 0x0600123C RID: 4668 RVA: 0x00002050 File Offset: 0x00000250 [Token(Token = "0x170003B5")] public ContentType ContentType { [Token(Token = "0x600123C")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")] get { return null; } } /// Gets or sets the encoding of this attachment. /// The encoding for this attachment. // Token: 0x170003B6 RID: 950 // (get) Token: 0x0600123D RID: 4669 RVA: 0x000087A8 File Offset: 0x000069A8 // (set) Token: 0x0600123E RID: 4670 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x170003B6")] public TransferEncoding TransferEncoding { [Token(Token = "0x600123D")] [Address(RVA = "0x42EE50", Offset = "0x42DC50", VA = "0x18042EE50")] get { return TransferEncoding.QuotedPrintable; } [Token(Token = "0x600123E")] [Address(RVA = "0x42EFF0", Offset = "0x42DDF0", VA = "0x18042EFF0")] set { } } /// Releases the resources used by the . // Token: 0x0600123F RID: 4671 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x600123F")] [Address(RVA = "0xF3D5B0", Offset = "0xF3C3B0", VA = "0x180F3D5B0", Slot = "4")] public void Dispose() { } /// Releases the unmanaged resources used by the and optionally releases the managed resources. /// /// to release both managed and unmanaged resources; to release only unmanaged resources. // Token: 0x06001240 RID: 4672 RVA: 0x00002053 File Offset: 0x00000253 [Token(Token = "0x6001240")] [Address(RVA = "0x2225E80", Offset = "0x2224C80", VA = "0x182225E80", Slot = "5")] protected virtual void Dispose(bool disposing) { } // Token: 0x04000AD1 RID: 2769 [FieldOffset(Offset = "0x10")] [Token(Token = "0x4000AD1")] private string id; // Token: 0x04000AD2 RID: 2770 [FieldOffset(Offset = "0x18")] [Token(Token = "0x4000AD2")] private ContentType contentType; // Token: 0x04000AD3 RID: 2771 [FieldOffset(Offset = "0x20")] [Token(Token = "0x4000AD3")] private Stream contentStream; // Token: 0x04000AD4 RID: 2772 [FieldOffset(Offset = "0x28")] [Token(Token = "0x4000AD4")] private TransferEncoding transferEncoding; } }