Version

InitializeResult(DataErrorInfo,Boolean) Method

Initializes the Infragistics.Services.OperationResult.Error and Infragistics.Services.OperationResult.IsComplete properties based on the specified values.
Syntax
'Declaration
 
Public Sub InitializeResult( _
   ByVal error As DataErrorInfo, _
   ByVal isComplete As Boolean _
) 
public void InitializeResult( 
   DataErrorInfo error,
   bool isComplete
)

Parameters

error
Infragistics.Services.DataErrorInfo object if an error occurred, null otherwise.
isComplete
Indicates whether the results are complete. Specify false if further results are going to be available.
Remarks

An operation may be performed 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 Infragistics.Services.OperationResult.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 Infragistics.Services.OperationResult.IsComplete property should be set to true.

If an error occurs during the operation, you can call this method with the Infragistics.Services.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.

Requirements

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

See Also