147 lines
5.7 KiB
C#
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: 0x020002B1 RID: 689
|
|
[Token(Token = "0x20002B1")]
|
|
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: 0x06001222 RID: 4642 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001222")]
|
|
[Address(RVA = "0x8A0320", Offset = "0x89F320", VA = "0x1808A0320")]
|
|
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: 0x06001223 RID: 4643 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001223")]
|
|
[Address(RVA = "0x8A0430", Offset = "0x89F430", VA = "0x1808A0430")]
|
|
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: 0x170003AF RID: 943
|
|
// (get) Token: 0x06001224 RID: 4644 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170003AF")]
|
|
public string ContentId
|
|
{
|
|
[Token(Token = "0x6001224")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the content stream of this attachment.</summary>
|
|
/// <returns>The content stream of this attachment.</returns>
|
|
// Token: 0x170003B0 RID: 944
|
|
// (get) Token: 0x06001225 RID: 4645 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170003B0")]
|
|
public Stream ContentStream
|
|
{
|
|
[Token(Token = "0x6001225")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the content type of this attachment.</summary>
|
|
/// <returns>The content type for this attachment.</returns>
|
|
// Token: 0x170003B1 RID: 945
|
|
// (get) Token: 0x06001226 RID: 4646 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170003B1")]
|
|
public ContentType ContentType
|
|
{
|
|
[Token(Token = "0x6001226")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets or sets the encoding of this attachment.</summary>
|
|
/// <returns>The encoding for this attachment.</returns>
|
|
// Token: 0x170003B2 RID: 946
|
|
// (get) Token: 0x06001227 RID: 4647 RVA: 0x00008790 File Offset: 0x00006990
|
|
// (set) Token: 0x06001228 RID: 4648 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x170003B2")]
|
|
public TransferEncoding TransferEncoding
|
|
{
|
|
[Token(Token = "0x6001227")]
|
|
[Address(RVA = "0x471180", Offset = "0x470180", VA = "0x180471180")]
|
|
get
|
|
{
|
|
return TransferEncoding.QuotedPrintable;
|
|
}
|
|
[Token(Token = "0x6001228")]
|
|
[Address(RVA = "0x5AB430", Offset = "0x5AA430", VA = "0x1805AB430")]
|
|
set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Releases the resources used by the <see cref="T:System.Net.Mail.AttachmentBase" />.</summary>
|
|
// Token: 0x06001229 RID: 4649 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6001229")]
|
|
[Address(RVA = "0x8A0300", Offset = "0x89F300", VA = "0x1808A0300", 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: 0x0600122A RID: 4650 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x600122A")]
|
|
[Address(RVA = "0x8A02C0", Offset = "0x89F2C0", VA = "0x1808A02C0", Slot = "5")]
|
|
protected virtual void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000AC4 RID: 2756
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000AC4")]
|
|
private string id;
|
|
|
|
// Token: 0x04000AC5 RID: 2757
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000AC5")]
|
|
private ContentType contentType;
|
|
|
|
// Token: 0x04000AC6 RID: 2758
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4000AC6")]
|
|
private Stream contentStream;
|
|
|
|
// Token: 0x04000AC7 RID: 2759
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000AC7")]
|
|
private TransferEncoding transferEncoding;
|
|
}
|
|
}
|