This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

ExplicitlySynchronizedAttribute Constructor (Boolean)

Initializes a new ExplicitlySynchronizedAttribute and specifies the synchronization strategy.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 5.0.33.0 (5.0.33.0)
Syntax
C#
public ExplicitlySynchronizedAttribute(
	bool appliesToMethodOnly
)

Parameters

appliesToMethodOnly
Type: System.Boolean
true to avoid adding any synchronization code to the target method, false to add synchronization code that allows the method to access other field or method of the target object.
See Also