FailedOperationException.GetObjectData(SerializationInfo, StreamingContext) FailedOperationException.GetObjectData(SerializationInfo, StreamingContext) FailedOperationException.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

Override based on the virtual System.Runtime.Serialization.SerializationInfo method GetObjectData.

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);
Public Overrides Sub GetObjectData (info As SerializationInfo, context As StreamingContext)
Parameters
info
SerializationInfo SerializationInfo SerializationInfo

A SerializationInfo that holds the serialized object data about the exception being thrown..

context
StreamingContext StreamingContext StreamingContext

A StreamingContext that contains contextual information about the source or destination.t

Remarks

GetObjectData sets a SerializationInfo object with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.

Applies to