Files
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

147 lines
5.7 KiB
C#

using System;
using System.IO;
using System.Net.Mime;
using Cpp2IlInjected;
namespace System.Net.Mail
{
/// <summary>Base class that represents an email attachment. Classes <see cref="T:System.Net.Mail.Attachment" />, <see cref="T:System.Net.Mail.AlternateView" />, and <see cref="T:System.Net.Mail.LinkedResource" /> derive from this class.</summary>
// Token: 0x020002B5 RID: 693
[Token(Token = "0x20002B5")]
public abstract class AttachmentBase : IDisposable
{
/// <summary>Instantiates an <see cref="T:System.Net.Mail.AttachmentBase" /> with the specified <see cref="T:System.IO.Stream" /> and <see cref="T:System.Net.Mime.ContentType" />.</summary>
/// <param name="contentStream">A stream containing the content for this attachment.</param>
/// <param name="contentType">The type of the content.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="contentStream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.FormatException">
/// <paramref name="contentType" /> is not a valid value.</exception>
// 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)
{
}
/// <summary>Instantiates an <see cref="T:System.Net.Mail.AttachmentBase" /> with the specified <see cref="T:System.IO.Stream" /> and media type.</summary>
/// <param name="contentStream">A stream containing the content for this attachment.</param>
/// <param name="mediaType">The MIME media type of the content.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="contentStream" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.FormatException">
/// <paramref name="mediaType" /> is not a valid value.</exception>
// 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)
{
}
/// <summary>Gets or sets the MIME content ID for this attachment.</summary>
/// <returns>A <see cref="T:System.String" /> holding the content ID.</returns>
/// <exception cref="T:System.ArgumentNullException">Attempted to set <see cref="P:System.Net.Mail.AttachmentBase.ContentId" /> to <see langword="null" />.</exception>
// 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;
}
}
/// <summary>Gets the content stream of this attachment.</summary>
/// <returns>The content stream of this attachment.</returns>
// 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;
}
}
/// <summary>Gets the content type of this attachment.</summary>
/// <returns>The content type for this attachment.</returns>
// 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;
}
}
/// <summary>Gets or sets the encoding of this attachment.</summary>
/// <returns>The encoding for this attachment.</returns>
// 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
{
}
}
/// <summary>Releases the resources used by the <see cref="T:System.Net.Mail.AttachmentBase" />.</summary>
// Token: 0x0600123F RID: 4671 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600123F")]
[Address(RVA = "0xF3D5B0", Offset = "0xF3C3B0", VA = "0x180F3D5B0", Slot = "4")]
public void Dispose()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Mail.AttachmentBase" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// 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;
}
}