SpreadsheetGear 2023
WithLock Method (WorkbookView)


SpreadsheetGear.Windows.Forms Namespace > WorkbookView Class : WithLock Method
Acquires a lock with GetLock, calls the specified delegate and then calls WorkbookView.ReleaseLock.
Overload List
OverloadDescription
Acquires a lock with GetLock, calls the specified delegate and then calls WorkbookView.ReleaseLock.  
Calls GetLock(), runs the specified Func, calls ReleaseLock() and then returns the value returned by the Func.  
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WorkbookView Class
WorkbookView Members