Sets the specified System.Runtime.Serialization.SerializationInfo object with information about the host protection exception.
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.