Parameters
- timeout
| Exception | Description |
|---|---|
| System.TimeoutException | The exception that is thrown when the time allotted for a process or operation has expired. |
Library/Library.Test/LockingTests/BaseLockTest.cs
| C# | Copy Code |
|---|---|
using (ILockStrategy l = LockFactory.Create()) { using (l.Write(0)) { } using (l.Read(0)) { } } | |
| VB.NET | Copy Code |
|---|---|
Using l As ILockStrategy = LockFactory.Create() Using l.Write(0) End Using Using l.Read(0) End Using End Using | |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7