Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConfigurationErrorsException::GetObjectData Method (SerializationInfo^, StreamingContext)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public:
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
virtual void GetObjectData(
	SerializationInfo^ info,
	StreamingContext context
) override

Parameters

info
Type: System.Runtime.Serialization::SerializationInfo^

The object that holds the information to be serialized.

context
Type: System.Runtime.Serialization::StreamingContext

The contextual information about the source or destination.

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft