InvalidPrinterException::GetObjectData Method (SerializationInfo^, StreamingContext)

 
Use BaseTrue

Overridden. Sets the SerializationInfo with information about the exception.

Namespace:   System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
[SecurityPermissionAttribute(SecurityAction::Demand, SerializationFormatter = true)]
virtual void GetObjectData(
	SerializationInfo^ info,
	StreamingContext context
) override

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.

Exception Condition
ArgumentNullException

info is null.

The GetObjectData method sets a SerializationInfo with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.

SerializationFormatter

for serialization and deserialization. For more information see: SerializationFormatter

.NET Framework
Available since 1.1
Return to top
Show: