SpreadsheetGear 2023
WithLock(Action) Method


SpreadsheetGear Namespace > IWorkbookSet Interface > WithLock Method : WithLock(Action) Method
The action to run.
Calls GetLock(), runs the specified Action and then calls ReleaseLock().
Syntax
'Declaration
 
Overloads Sub WithLock( _
   ByVal action As System.Action _
) 
'Usage
 
Dim instance As IWorkbookSet
Dim action As System.Action
 
instance.WithLock(action)
void WithLock( 
   System.Action action
)

Parameters

action
The action to run.
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

IWorkbookSet Interface
IWorkbookSet Members
Overload List
WithLock<TResult>(Func<TResult>) Method
GetLock Method
ReleaseLock Method