Files
Dec2017-Script-Dump/System/Net/Mail/SmtpFailedRecipientsException.cs
2026-06-04 11:42:34 +02:00

97 lines
5.8 KiB
C#

using System;
using System.Runtime.Serialization;
namespace System.Net.Mail
{
/// <summary>The exception that is thrown when e-mail is sent using an <see cref="T:System.Net.Mail.SmtpClient" /> and cannot be delivered to all recipients.</summary>
// Token: 0x0200014C RID: 332
[Serializable]
public class SmtpFailedRecipientsException : SmtpFailedRecipientException, ISerializable
{
/// <summary>Initializes an empty instance of the <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> class.</summary>
// Token: 0x06000B64 RID: 2916 RVA: 0x00022F68 File Offset: 0x00021168
public SmtpFailedRecipientsException()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> class with the specified <see cref="T:System.String" />.</summary>
/// <param name="message">The exception message.</param>
// Token: 0x06000B65 RID: 2917 RVA: 0x00022F70 File Offset: 0x00021170
public SmtpFailedRecipientsException(string message)
: base(message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> class with the specified <see cref="T:System.String" /> and inner <see cref="T:System.Exception" />.</summary>
/// <param name="message">The exception message.</param>
/// <param name="innerException">The inner exception.</param>
// Token: 0x06000B66 RID: 2918 RVA: 0x00022F7C File Offset: 0x0002117C
public SmtpFailedRecipientsException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> class with the specified <see cref="T:System.String" /> and array of type <see cref="T:System.Net.Mail.SmtpFailedRecipientException" />.</summary>
/// <param name="message">The exception message.</param>
/// <param name="innerExceptions">The array of recipients with delivery errors.</param>
// Token: 0x06000B67 RID: 2919 RVA: 0x00022F88 File Offset: 0x00021188
public SmtpFailedRecipientsException(string message, SmtpFailedRecipientException[] innerExceptions)
: base(message)
{
this.innerExceptions = innerExceptions;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
/// <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance that contains the information required to serialize the new <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> instance. </param>
/// <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the source of the serialized stream that is associated with the new <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> instance. </param>
// Token: 0x06000B68 RID: 2920 RVA: 0x00022F98 File Offset: 0x00021198
protected SmtpFailedRecipientsException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
if (info == null)
{
throw new ArgumentNullException("info");
}
this.innerExceptions = (SmtpFailedRecipientException[])info.GetValue("innerExceptions", typeof(SmtpFailedRecipientException[]));
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" /> class from the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> instances.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that contains the information required to serialize the new <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" />. </param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the source of the serialized stream that is associated with the new <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" />. </param>
// Token: 0x06000B69 RID: 2921 RVA: 0x00022FD4 File Offset: 0x000211D4
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
this.GetObjectData(info, context);
}
/// <summary>Gets one or more <see cref="T:System.Net.Mail.SmtpFailedRecipientException" />s that indicate the e-mail recipients with SMTP delivery errors.</summary>
/// <returns>An array of type <see cref="T:System.Net.Mail.SmtpFailedRecipientException" /> that lists the recipients with delivery errors.</returns>
// Token: 0x170002DA RID: 730
// (get) Token: 0x06000B6A RID: 2922 RVA: 0x00022FE0 File Offset: 0x000211E0
public SmtpFailedRecipientException[] InnerExceptions
{
get
{
return this.innerExceptions;
}
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance with the data that is needed to serialize the <see cref="T:System.Net.Mail.SmtpFailedRecipientsException" />.</summary>
/// <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> to be used. </param>
/// <param name="streamingContext">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> to be used. </param>
// Token: 0x06000B6B RID: 2923 RVA: 0x00022FE8 File Offset: 0x000211E8
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
if (info == null)
{
throw new ArgumentNullException("info");
}
base.GetObjectData(info, context);
info.AddValue("innerExceptions", this.innerExceptions);
}
// Token: 0x04000B59 RID: 2905
private SmtpFailedRecipientException[] innerExceptions;
}
}