System.Security.HostProtectionException.GetObjectData Method

Sets the specified System.Runtime.Serialization.SerializationInfo object with information about the host protection exception.

Syntax

public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

info
The serialized object data about the exception being thrown.
context
The contextual information about the source or destination.

Remarks

The HostProtectionException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext) method sets a System.Runtime.Serialization.SerializationInfo object with all the exception object data targeted for serialization. During deserialization, the exception is reconstructed from the System.Runtime.Serialization.SerializationInfo transmitted over the stream.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0