SynchronizationAttribute.Locked Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a Boolean value indicating whether the Context implementing this instance of SynchronizationAttribute is locked.

Namespace:   System.Runtime.Remoting.Contexts
Assembly:  mscorlib (in mscorlib.dll)

public virtual bool Locked { get; set; }

Property Value

Type: System.Boolean

A Boolean value indicating whether the Context implementing this instance of SynchronizationAttribute is locked.

When a synchronized Context is locked, only the thread currently executing in it has access to objects in the Context.

.NET Framework
Available since 1.1
Return to top
Show: