PostSharp//API Reference/Post­Sharp.​Patterns.​Threading/Thread­Aware­Attribute/On­Serializing
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]
public void OnSerializing(StreamingContext streamingContext)
Parameters
Type Name Description
StreamingContext streamingContext

Streaming context.