| Visual Basic (Declaration) | |
|---|---|
Public Function New( _ ByVal lck As ILockStrategy, _ ByVal timeout As Integer _ ) | |
| C# | |
|---|---|
public WriteLock( ILockStrategy lck, int timeout ) | |
Parameters
- lck
- timeout
Library/Library.Test/LockingTests/TestLockingStructs.cs
| C# | Copy Code |
|---|---|
using (ILockStrategy l = LockFactory.Create()) using (new ThreadedWriter(l)) using (WriteLock w = new WriteLock(l, 0)) Assert.IsFalse(w.HasWriteLock); | |
| VB.NET | Copy Code |
|---|---|
Using l As ILockStrategy = LockFactory.Create() Using New ThreadedWriter(l) Using w As New WriteLock(l, 0) Assert.IsFalse(w.HasWriteLock) End Using End Using End Using | |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
WriteLock StructureWriteLock Members
Overload List