InvalidContentException.GetObjectData Method
Note
This method is available only when developing for Windows.
When overridden in a derived class, returns information about the exception.
In addition to the base behavior, this method provides serialization functionality.
Syntax
'Declaration
Public Overrides Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
public override void GetObjectData (
SerializationInfo info,
StreamingContext context
)
public:
void GetObjectData(
SerializationInfo info,
StreamingContext context
) override
Parameters
- info
Type: SerializationInfo
Information necessary for serialization and deserialization of the content item. - context
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