System.Net.Mail.SmtpFailedRecipientException.GetObjectData Method

Populates a System.Runtime.Serialization.SerializationInfo instance with the data that is needed to serialize the System.Net.Mail.SmtpFailedRecipientException.

Syntax

public override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext)

Parameters

serializationInfo
The System.Runtime.Serialization.SerializationInfo to populate with data.
streamingContext
A System.Runtime.Serialization.StreamingContext that specifies the destination for this serialization.

Remarks

Any objects that are included in the System.Runtime.Serialization.SerializationInfo are automatically tracked and serialized by the formatter.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0