SafeMonitorLock Method

Spotfire 14.3 API Reference

Note: This API is now obsolete.

Creates a lock that will work on the UI-thread as well as on background threads. It must be called within a using-statement to assure that the Monitor is exited.

Namespace:  Spotfire.Dxp.Framework.Threading
Assembly:  Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 65.0.19510.3242 (65.0.19510.3242)
Syntax

C#
[ObsoleteAttribute("Use lock instead.")]
public static IDisposable Lock(
	Object lockObject
)

Parameters

lockObject
Type: SystemObject
The object that shall be used to lock on

Return Value

Type: IDisposable
A disposable object which releases the lock when disposed.
Version Information

Obsolete (compiler warning) in 14.3
Obsolete (compiler warning) in 14.2
Obsolete (compiler warning) in 14.1
Obsolete (compiler warning) in 14.0
Obsolete (compiler warning) in 12.5
Obsolete (compiler warning) in 12.4
Obsolete (compiler warning) in 12.3
Obsolete (compiler warning) in 12.2
Obsolete (compiler warning) in 12.1
Obsolete (compiler warning) in 12.0
Obsolete (compiler warning) in 11.8
See Also

Reference