CookieException.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 CookieException.

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

Het object met de geserialiseerde objectgegevens. De SerializationInfo te vullen met gegevens.

streamingContext
StreamingContext

De contextuele informatie over de bron of bestemming. Een StreamingContext die de bestemming voor deze serialisatie aangeeft.

Kenmerken

Opmerkingen

Deze constructor wordt aangeroepen tijdens deserialisatie om het uitzonderingsobject te reconstitueren dat via een stroom wordt verzonden. Zie XML- en SOAP-serialisatie voor meer informatie. Alle objecten die in de SerializationInfo objecten zijn opgenomen, worden automatisch bijgehouden en geserialiseerd door de formatter.

Van toepassing op