InstancePersistenceException.GetObjectData Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets the SerializationInfo with information about the exception.
Namespace: System.Runtime.Persistence
Assembly: System.Runtime (in System.Runtime.dll)
Syntax
'Declaration
Public Overrides Sub GetObjectData ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim instance As InstancePersistenceException
Dim info As SerializationInfo
Dim context As StreamingContext
instance.GetObjectData(info, context)
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
)
public:
virtual void GetObjectData(
SerializationInfo^ info,
StreamingContext context
) override
abstract GetObjectData :
info:SerializationInfo *
context:StreamingContext -> unit
override GetObjectData :
info:SerializationInfo *
context:StreamingContext -> unit
Parameters
- info
Type: System.Runtime.Serialization.SerializationInfo
The serialized object data about the exception being thrown.
- context
Type: System.Runtime.Serialization.StreamingContext
The contextual information about the source or destination
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
_Exception.GetObjectData(SerializationInfo, StreamingContext)
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4
.NET Framework Client Profile
Supported in: 4
See Also
Reference
InstancePersistenceException Class