PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingExplicitly­Synchronized­Attribute
Open sandboxFocus

Class ExplicitlySynchronizedAttribute

Custom attribute that, when applied to a method or field, specifies that threading model aspects (derived from ThreadAwareAttribute) should ignore all verifications for this field or method.

Inheritance
ExplicitlySynchronizedAttribute
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[MulticastAttributeUsage]
public sealed class ExplicitlySynchronizedAttribute : MulticastAttribute

Constructors

Name Description
ExplicitlySynchronizedAttribute()

Initializes a new ExplicitlySynchronizedAttribute.

ExplicitlySynchronizedAttribute(Boolean)

Initializes a new ExplicitlySynchronizedAttribute and specifies the synchronization strategy.

Properties

Name Description
AppliesToMethodOnly

Determines the synchronization strategy. When AppliesToMethodOnly is true, no synchronization code will be added to the target method. When it is set to false to add synchronization code will be added to allow the method to access other field or method of the target object. The default value is false.