Library/Library.Test/LockingTests/TestMutexLock.cs
C# | Copy Code |
---|---|
using (MutexLock lck = new MutexLock(Guid.NewGuid().ToString())) Assert.IsTrue(lck.WasNew); |
VB.NET | Copy Code |
---|---|
Using lck As New MutexLock(Guid.NewGuid().ToString()) Assert.IsTrue(lck.WasNew) End Using |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7