Visual Basic (Declaration) | |
---|---|
Public Function Cancel() As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AsyncResult Dim value As Boolean value = instance.Cancel() |
C# | |
---|---|
public bool Cancel() |
C++/CLI | |
---|---|
public: bool Cancel(); |
Return Value
True
if the thread has been canceled; otherwise, false
.Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7