CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
iasyncresult.h
1
3#ifndef _iasyncresult_h_
4#define _iasyncresult_h_
5
6#include "system/object.h"
7#include "system/threading/wait_handle.h"
8
9namespace System {
14 class ASPOSECPP_SHARED_CLASS IAsyncResult : virtual public System::Object
15 {
16 RTTI_INFO(System::IAsyncResult, ::System::BaseTypesInfo<System::Object>)
17
18 public:
21
23 virtual ASPOSECPP_SHARED_API SharedPtr<System::Object> get_AsyncState()=0;
26 virtual ASPOSECPP_SHARED_API bool get_CompletedSynchronously()=0;
29 virtual ASPOSECPP_SHARED_API bool get_IsCompleted()=0;
33
35 virtual ~IAsyncResult() {}
36 };
37
40}
41
42#endif
Represents the status of asynchronous operation. Objects of this class should only be allocated using...
Definition: iasyncresult.h:15
virtual SharedPtr< System::Object > get_AsyncState()=0
Returns an object that contains the information about asyrchronous operation.
virtual SharedPtr< System::Threading::WaitHandle > get_AsyncWaitHandle()=0
Returns an instance of WaitHandle that can be used to wait for the completion of the asynchronous ope...
virtual bool get_CompletedSynchronously()=0
Returns a value that indicates whether the asynchronous operation completed synchronously.
virtual ~IAsyncResult()
Destructor.
Definition: iasyncresult.h:35
SharedPtr< IAsyncResult > smart_ptr
Shared pointer to IAsyncResult.
Definition: iasyncresult.h:20
virtual bool get_IsCompleted()=0
Returns a value that indicates whether the asynchronous operation has completed.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9
SharedPtr< IAsyncResult > IAsyncResultPtr
Shared pointer to IAsyncResult.
Definition: iasyncresult.h:39