SpreadsheetGear 2017
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 Action _
) 
'Usage
 
Dim instance As IWorkbookSet
Dim action As Action
 
instance.WithLock(action)
void WithLock( 
   Action action
)
procedure WithLock( 
    action: Action
); 
function WithLock( 
   action : Action
);
void WithLock( 
   Action* action
) 
void WithLock( 
   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