ExplicitlySynchronizedAttribute Class
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.
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[MulticastAttributeUsage]
public sealed class ExplicitlySynchronizedAttribute : MulticastAttribute
Remarks
When the custom attribute is applied to a field, accesses to this field are never checked.
When the custom attribute is applied to a method, checking of accesses to all fields is disabled during the whole method execution, for the current thread.
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 |