SynchronizationAttribute::Locked Property

 

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:
property bool Locked {
	virtual bool get();
	virtual void set(bool value);
}

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: