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.

InvalidDataContractException Constructor (SerializationInfo^, StreamingContext)

 

Initializes a new instance of the InvalidDataContractException class with the specified SerializationInfo and StreamingContext.

Namespace:   System.Runtime.Serialization
Assembly:  System.Runtime.Serialization (in System.Runtime.Serialization.dll)

protected:
InvalidDataContractException(
	SerializationInfo^ info,
	StreamingContext context
)

Parameters

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

A SerializationInfo that contains data needed to serialize and deserialize an object.

context
Type: System.Runtime.Serialization::StreamingContext

A StreamingContext that specifies user context during serialization and deserialization.

This constructor is used in deserialization by one of the formatters in the System.Runtime.Serialization namespace.

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