SmtpException.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

Populates a SerializationInfo instance with the data needed to serialize the SmtpException.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parameters

serializationInfoinfo
SerializationInfo

The SerializationInfo to populate with data.

streamingContextcontext
StreamingContext

A StreamingContext that specifies the destination for this serialization.

Remarks

Any objects included in the SerializationInfo are automatically tracked and serialized by the formatter.

Applies to