Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
GetObjectData Method (info, context)
SwiPlCs interface ► SbsSW.SwiPlCs.Exceptions ► PlLibException ► GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.

C# | Visual Basic | Visual C++ |
public override void GetObjectData( SerializationInfo info, StreamingContext context )
Public Overrides Sub GetObjectData ( _ info As SerializationInfo, _ context As StreamingContext _ )
public: virtual void GetObjectData( SerializationInfo^ info, StreamingContext context ) override

- info (SerializationInfo)
- The SerializationInfo that holds the serialized object data about the exception being thrown.
- context (StreamingContext)
- The StreamingContext that contains contextual information about the source or destination.

Exception | Condition |
---|---|
ArgumentNullException |
The info parameter is a null reference (Nothing in Visual Basic).
|
SecurityException |
The caller does not have the required permission.
|