PostSharp4.3/API Reference/Post­Sharp.​Patterns.​Threading Namespace/Thread­Aware­Attribute Class/Thread­Aware­Attribute Methods/Thread­Aware­Attribute.​On­Serializing Method
ThreadAwareAttribute.OnSerializing Method
Requires read access level to the current object before serialization can proceed. This method will be introduced into the target class.

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public void OnSerializing(
	StreamingContext streamingContext
)

Parameters

streamingContext
Type: System.Runtime.Serialization.StreamingContext
Streaming context.
See Also