When overridden in a derived class, sets the SerializationInfo with information about the exception.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
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
abstract GetObjectData : info : SerializationInfo * context : StreamingContext -> unit override GetObjectData : info : SerializationInfo * context : StreamingContext -> unit
Parameters
- 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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The info parameter is a null reference (Nothing in Visual Basic). |
SecurityException | The caller does not have the required permission. |
Assembly: SwiPlCs (Module: SwiPlCs.dll) Version: 1.1.60601.0 (1.1.60601.0)