EntitySurrogate.BeforeSerialize Method

Called before the object serialization.
Protected Overrides Sub BeforeSerialize( _ 
ByVal serializationContext As ProtoBuf.SerializationContext
)
This language is not supported or no code example is available.
protected override void BeforeSerialize( 
ProtoBuf.SerializationContext serializationContext 
)
This language is not supported or no code example is available.

Parameters

serializationContext
ProtoBuf.SerializationContext

The serialization context

Exception type Condition

ArgumentException

Thrown when the serialization context is not a valid FileSerializer object.

Remarks
 
The override of this method must always call the base at the beginning.

.NET Framework

Supported in: 4.8

In this article

Definition