Cocktail Help Reference
GetTicket Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > BusyWatcher Class : GetTicket Method



Glossary Item Box

Returns a disposable ticket to manage busy state around a using() scope.

Syntax

Visual Basic (Declaration) 
Public Function GetTicket() As IDisposable
Visual Basic (Usage)Copy Code
Dim instance As BusyWatcher
Dim value As IDisposable
 
value = instance.GetTicket()
C# 
public IDisposable GetTicket()
C++/CLI 
public:
IDisposable^ GetTicket(); 

Return Value

Ticket implementing IDisposable.

Remarks

The internal busy indicator is incremented by calling this method and as soon as the Dispose() method is called on the ticket, the internal busy counter is decremented.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.