PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingDeadlock­ExceptionGet­Object­Data
Open sandboxFocus

Method GetObjectData

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the SerializationInfo with information about the exception.

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
SerializationInfo info

The SerializationInfo that holds the serialized object data about the exception being thrown.

StreamingContext context

The StreamingContext that contains contextual information about the source or destination.

Exceptions
Type Condition
ArgumentNullException

The info parameter is a null reference (langword_csharp_Nothing in Visual Basic).

SecurityException

The caller does not have the required permission.