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

Definition

Sets the SerializationInfo object with the file name and line number at which this configuration exception occurred.

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);
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 SerializationInfo SerializationInfo SerializationInfo

The object that holds the information to be serialized.

context
StreamingContext StreamingContext StreamingContext StreamingContext

The contextual information about the source or destination.

Remarks

The GetObjectData method sets a SerializationInfo object with the file name and line number at which this ConfigurationErrorsException exception occurred. During deserialization, the ConfigurationErrorsException exception is reconstituted from the SerializationInfo object that is transmitted over the stream.

Applies to