Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Explicitly­Synchronized­Attribute Class / Explicitly­Synchronized­Attribute Constructor / Explicitly­Synchronized­Attribute Constructor (Boolean)

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.38.0 (5.0.38.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