log4net SDK Reference

LoggingEvent.GetObjectData Method 

Serializes this object into the SerializationInfo provided.

[Visual Basic]
Overridable Public Sub GetObjectData( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
) _
    Implements ISerializable.GetObjectData
[C#]
public virtual void GetObjectData(
   SerializationInfo info,
   StreamingContext context
);

Parameters

info
The SerializationInfo to populate with data.
context
The destination for this serialization.

Implements

ISerializable.GetObjectData

Remarks

The data in this event must be fixed before it can be serialized.

The FixVolatileData method must be called during the DoAppend method call if this event is to be used outside that method.

See Also

LoggingEvent Class | log4net.Core Namespace