Open sandboxFocus

Method OnSerializing

OnSerializing(StreamingContext)

Requires read access level to the current object before serialization can proceed. This method will be introduced into the target class.

Declaration
[CopyCustomAttributes(typeof(OnSerializingAttribute), OverrideAction = CustomAttributeOverrideAction.Ignore)]
[OnSerializing]
public void OnSerializing(StreamingContext streamingContext)
Parameters
Type Name Description
StreamingContext streamingContext

Streaming context.