'Declaration Public Sub InitializeResult( _ ByVal error As DataErrorInfo, _ ByVal isComplete As Boolean _ )
public void InitializeResult( DataErrorInfo error, bool isComplete )
Activity operations may be executed asynchronously. When a method that performs an operation is required to return an instance of OperationResult derived class, you can return a new instance and specify the result of the operation later via this method when it's available. While the asynchronous operation is still pending, the IsComplete property will return False. When the result is available, you can call this method and specify 'isComplete' parameter as true to indicate that the operation is complete and that the IsComplete property should be set to true.
If an error occurs during the operation, you can call this method with the DataErrorInfo object containing the error information. Also specifiy true for 'isComplete' since no further action will be taken and operation is considered to be complete with an error.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2