InvalidContentException Constructor (SerializationInfo, StreamingContext)
Note
This constructor is available only when developing for Windows.
Initializes a new instance of the InvalidContentException class with information on serialization and streaming context for the related content item.
Syntax
'Declaration
Protected Sub New ( _
serializationInfo As SerializationInfo, _
streamingContext As StreamingContext _
)
protected InvalidContentException (
SerializationInfo serializationInfo,
StreamingContext streamingContext
)
protected:
InvalidContentException(
SerializationInfo serializationInfo,
StreamingContext streamingContext
)
Parameters
- serializationInfo
Type: SerializationInfo
Information necessary for serialization and deserialization of the content item. - streamingContext
Type: StreamingContext
Information necessary for the source and destination of a given serialized stream. Also provides an additional caller-defined context.
Requirements
Namespace: Microsoft.Xna.Framework.Content.Pipeline
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)
See Also
Reference
InvalidContentException Class
InvalidContentException Members
Microsoft.Xna.Framework.Content.Pipeline Namespace
Platforms
Windows 7, Windows Vista, Windows XP