Open sandboxFocus

Constructor ExplicitlySynchronizedAttribute

ExplicitlySynchronizedAttribute()

Declaration
public ExplicitlySynchronizedAttribute()

ExplicitlySynchronizedAttribute(bool)

Initializes a new ExplicitlySynchronizedAttribute and specifies the synchronization strategy.

Declaration
public ExplicitlySynchronizedAttribute(bool appliesToMethodOnly)
Parameters
Type Name Description
bool appliesToMethodOnly

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.