DeadlockException.GetObjectData Method |
When overridden in a derived class, sets the SerializationInfo with information about the exception.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public override void GetObjectData( SerializationInfo info, StreamingContext context )
Parameters
- info
- Type: System.Runtime.Serialization.SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown. - context
- Type: System.Runtime.Serialization.StreamingContext
The StreamingContext that contains contextual information about the source or destination.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext)_Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception | Condition |
---|---|
ArgumentNullException | The info parameter is a null reference (null in Visual Basic). |
SecurityException | The caller does not have the required permission. |