DomainDataSource.CancelLoad Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Cancels the current data loading operation performed by this DomainDataSource, if any.
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)
Syntax
'Declaration
Public Sub CancelLoad
'Usage
Dim instance As DomainDataSource
instance.CancelLoad()
public void CancelLoad()
public:
void CancelLoad()
member CancelLoad : unit -> unit
public function CancelLoad()
Remarks
This method will cancel a Load operation already in progress. Operations canceled using CancelLoad will raise a LoadedData event when they complete with the Cancel flag set to true. If IsLoadingData is false, this method will not do anything. This method of cancellation differs slightly from canceling a data loading by way of the LoadingData event.