Szerkesztés

Megosztás a következőn keresztül:


CodeDomSerializerException.GetObjectData Method

Definition

Caution

This API is now deprecated.

Sets the SerializationInfo object with the parameter name and additional exception information.

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(DiagnosticId="SYSLIB0051")]
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
[<System.Obsolete(DiagnosticId="SYSLIB0051")>]
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

Stores the data that was being used to serialize or deserialize the object that the CodeDomSerializer was serializing or deserializing.

context
StreamingContext

Describes the source and destination of the stream that generated the exception, as well as a means for serialization to retain that context and an additional caller-defined context.

Attributes

Exceptions

The info parameter is null.

Applies to