The Labs \ Source Viewer \ SSCLI \ System \ IAsyncResult

  1. // ==++==
  2. //
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Interface: IAsyncResult
  18. **
  19. ** Purpose: Interface to encapsulate the results of an async
  20. **          operation
  21. **
  22. ===========================================================*/
  23. namespace System
  24. {
  25.    
  26.     using System;
  27.     using System.Threading;
  28.     [System.Runtime.InteropServices.ComVisible(true)]
  29.     public interface IAsyncResult
  30.     {
  31.         bool IsCompleted {
  32.             get;
  33.         }
  34.        
  35.         WaitHandle AsyncWaitHandle {
  36.             get;
  37.         }
  38.        
  39.        
  40.         object AsyncState {
  41.             get;
  42.         }
  43.        
  44.         bool CompletedSynchronously {
  45.             get;
  46.         }
  47.        
  48.        
  49.     }
  50.    
  51. }

Developer Fusion