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

74 lines
3.6 KiB
C#

using System;
using System.IO;
using System.Net.Mime;
using System.Text;
using Cpp2IlInjected;
namespace System.Net.Mail
{
/// <summary>Represents the format to view an email message.</summary>
// Token: 0x020002B2 RID: 690
[Token(Token = "0x20002B2")]
public class AlternateView : AttachmentBase
{
/// <summary>Initializes a new instance of <see cref="T:System.Net.Mail.AlternateView" /> with the specified <see cref="T:System.IO.Stream" /> and <see cref="T:System.Net.Mime.ContentType" />.</summary>
/// <param name="contentStream">A stream that contains 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: 0x06001228 RID: 4648 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x6001228")]
[Address(RVA = "0x2225D20", Offset = "0x2224B20", VA = "0x182225D20")]
public AlternateView(Stream contentStream, ContentType contentType)
{
}
/// <summary>Gets the set of embedded resources referred to by this attachment.</summary>
/// <returns>A <see cref="T:System.Net.Mail.LinkedResourceCollection" /> object that stores the collection of linked resources to be sent as part of an email message.</returns>
// Token: 0x170003AF RID: 943
// (get) Token: 0x06001229 RID: 4649 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170003AF")]
public LinkedResourceCollection LinkedResources
{
[Token(Token = "0x6001229")]
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
get
{
return null;
}
}
/// <summary>Creates an <see cref="T:System.Net.Mail.AlternateView" /> of an email message using the content specified in a <see cref="T:System.String" />, the specified text encoding, and MIME media type of the content.</summary>
/// <param name="content">A <see cref="T:System.String" /> that contains the content for this attachment.</param>
/// <param name="contentEncoding">An <see cref="T:System.Text.Encoding" />. This value can be <see langword="null." /></param>
/// <param name="mediaType">The MIME media type of the content.</param>
/// <returns>An <see cref="T:System.Net.Mail.AlternateView" /> object that represents an alternate view of an email message.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="content" /> is null.</exception>
// Token: 0x0600122A RID: 4650 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600122A")]
[Address(RVA = "0x2225890", Offset = "0x2224690", VA = "0x182225890")]
public static AlternateView CreateAlternateViewFromString(string content, Encoding contentEncoding, string mediaType)
{
return null;
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Net.Mail.AlternateView" /> 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: 0x0600122B RID: 4651 RVA: 0x00002053 File Offset: 0x00000253
[Token(Token = "0x600122B")]
[Address(RVA = "0x2225B60", Offset = "0x2224960", VA = "0x182225B60", Slot = "5")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x04000ACE RID: 2766
[FieldOffset(Offset = "0x30")]
[Token(Token = "0x4000ACE")]
private LinkedResourceCollection linkedResources;
}
}