public static IAsyncResult BeginLoad(
Stream stream,
AsyncConfig? asyncConfig = null
)
Public Shared Function BeginLoad (
stream As Stream,
Optional asyncConfig As AsyncConfig = Nothing
) As IAsyncResult
public:
static IAsyncResult^ BeginLoad(
Stream^ stream,
AsyncConfig^ asyncConfig = nullptr
)
static member BeginLoad :
stream : Stream *
?asyncConfig : AsyncConfig
(* Defaults:
let _asyncConfig = defaultArg asyncConfig null
*)
-> IAsyncResult
In .NET Framework 4.0 and above you can use also the LoadAsync method.
To finish the operation and to get the exception that occurred during the operation you have to call the EndLoad method.
This method is not a blocking call, though the operation is not parallelized and the MaxDegreeOfParallelism property of the asyncConfig parameter is ignored.