SmtpException.GetObjectData(SerializationInfo, StreamingContext) Methode

Definitie

Let op

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Hiermee wordt een SerializationInfo exemplaar gevuld met de gegevens die nodig zijn om de SmtpException.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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)

Parameters

serializationInfo
SerializationInfo

De SerializationInfo te vullen met gegevens.

streamingContext
StreamingContext

Een StreamingContext die de bestemming voor deze serialisatie aangeeft.

Kenmerken

Opmerkingen

Alle objecten die in de SerializationInfo objecten zijn opgenomen, worden automatisch bijgehouden en geserialiseerd door de formatter.

Van toepassing op