Visual Basic (Declaration) | |
---|---|
Sub ReleaseLock() |
C# | |
---|---|
void ReleaseLock() |
Demonstrate using a workbook set in a thread safe manner.
C# | ![]() |
---|---|
void DoSomeThreadSafeWork(IWorkbookSet workbookSet) |
Visual Basic | ![]() |
---|---|
Sub DoSomeThreadSafeWork(ByVal workbookSet As IWorkbookSet) |
This method is thread safe.
Calls to GetLock may be nested. ReleaseLock must be called once for each call to GetLock.
Interruptible background calculation will be started if the following conditions are all met:
- The last lock acquired by the current thread is being released.
- There are no other threads waiting to acquire a lock on this workbook set.
- BackgroundCalculation is set to true.
- Calculation is not set to Calculation.Manual.
Requirements
Platforms: x86 and x64 versions of Windows 2000, Windows XP, Windows Vista, Windows 7, Windows Server 2003 (including R2) and Windows Server 2008 (including R2). SpreadsheetGear 2009 requires the Microsoft .NET Framework 2.0 and supports .NET 3.0 and .NET 3.5.