AsyncHelperFromCompleted(AsyncConfig, String) Method
Returns an
IAsyncResult instance that represents an already completed operation without a result.
The
EndOperation method still must be called with the result of this method.
See the
Examples section of the
AsyncHelper class for details.
The example uses the similarly working
FromResult method.
Namespace: KGySoft.ThreadingAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static IAsyncResult FromCompleted(
AsyncConfig? asyncConfig,
string beginMethodName = null
)
Public Shared Function FromCompleted (
asyncConfig As AsyncConfig,
Optional beginMethodName As String = Nothing
) As IAsyncResult
public:
static IAsyncResult^ FromCompleted(
AsyncConfig^ asyncConfig,
String^ beginMethodName = nullptr
)
static member FromCompleted :
asyncConfig : AsyncConfig *
?beginMethodName : string
(* Defaults:
let _beginMethodName = defaultArg beginMethodName null
*)
-> IAsyncResult
- asyncConfig AsyncConfig
- The configuration for the asynchronous operation.
- beginMethodName String (Optional)
- The name of the method that represents the operation.
This must be passed also to the EndOperation method. This parameter is optional.
Default value: The name of the caller method when used with a compiler that recognizes CallerMemberNameAttribute; otherwise, .
IAsyncResultAn
IAsyncResult instance representing the asynchronous operation.
To complete the operation it must be passed to the
EndOperation method.