LoggingEvent GetObjectData Method | Apache log4net™ SDK Documentation

Serializes this object into the SerializationInfo provided.

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public virtual void GetObjectData(
    	SerializationInfo info,
    	StreamingContext context
    )

    Public Overridable Sub GetObjectData (
    	info As SerializationInfo,
    	context As StreamingContext
    )

    public:
    virtual void GetObjectData(
    	SerializationInfo^ info,
    	StreamingContext context
    )

    abstract GetObjectData :
            info : SerializationInfo *
            context : StreamingContext -> unit
    override GetObjectData :
            info : SerializationInfo *
            context : StreamingContext -> unit

#### Parameters

info
  Type: System.Runtime.Serialization
  SerializationInfo
  The SerializationInfo to populate with data.
context
  Type: System.Runtime.Serialization
  StreamingContext
  The destination for this serialization.

#### Implements

ISerializable
GetObjectData(SerializationInfo, StreamingContext)
Remarks

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

The [M:FixVolatileData()] method must be called during the DoAppend(LoggingEvent) method call if this event is to be used outside that method.

See Also

#### Reference

LoggingEvent Class
log4net.Core Namespace