WarningException.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 stelt u de SerializationInfo parameternaam en aanvullende uitzonderingsgegevens in.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[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 info, System.Runtime.Serialization.StreamingContext context);
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<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 (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Slaat de gegevens op die werden gebruikt om het object te serialiseren of deserialiseren dat het CodeDomSerializer object serialiseert of deserialiseerde.

context
StreamingContext

Beschrijft de bron en het doel van de stream die de uitzondering heeft gegenereerd, evenals een middel voor serialisatie om die context en een extra door de aanroeper gedefinieerde context te behouden.

Kenmerken

Uitzonderingen

info is null.

Van toepassing op