LoadOperation Class
WCF RIA Services
[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.]
Represents an asynchronous load operation.
System.Object
System.ServiceModel.DomainServices.Client.OperationBase
System.ServiceModel.DomainServices.Client.LoadOperation
System.ServiceModel.DomainServices.Client.LoadOperation(Of TEntity)
System.ServiceModel.DomainServices.Client.OperationBase
System.ServiceModel.DomainServices.Client.LoadOperation
System.ServiceModel.DomainServices.Client.LoadOperation(Of TEntity)
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
The LoadOperation type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AllEntities | Gets all the entities loaded by the operation, including any entities referenced by the top-level entities. |
![]() | CanCancel | Gets a value that indicates whether this OperationBase is currently in a state that enables it to be canceled. (Inherited from OperationBase.) |
![]() | Entities | Gets all the top-level entities loaded by the operation. |
![]() | EntityQuery | Gets the System.ServiceModel.DomainServices.Client.EntityQuery for this load operation. |
![]() | Error | Gets the operation error if the operation failed. (Inherited from OperationBase.) |
![]() | HasError | Gets a value that indicates whether the operation failed. (Inherited from OperationBase.) |
![]() | IsCanceled | Gets a value that indicates whether this operation has been canceled. (Inherited from OperationBase.) |
![]() | IsComplete | Gets a value that indicates whether this operation has completed. (Inherited from OperationBase.) |
![]() | IsErrorHandled | Gets or sets a value that indicates whether the operation error has been handled. (Inherited from OperationBase.) |
![]() | LoadBehavior | Gets the System.ServiceModel.DomainServices.Client.LoadBehavior for this load operation. |
![]() | Result | Gets the DomainClientResult for this operation. |
![]() | SupportsCancellation | Gets a value that indicates whether this operation supports cancellation. (Inherited from OperationBase.) |
![]() | TotalEntityCount | Gets the total server entity count for the query used by this operation. |
![]() | UserState | Gets the optional user state for this operation. (Inherited from OperationBase.) |
![]() | ValidationErrors | Gets the validation errors. |
| Name | Description | |
|---|---|---|
![]() | Cancel | Cancels the operation. (Inherited from OperationBase.) |
![]() | CancelCore | When overridden in a derived class, provides the logic to cancel the operation. (Inherited from OperationBase.) |
![]() | Complete(Exception) | Completes a failed operation with the specified error. (Inherited from OperationBase.) |
![]() | Complete(Object) | Completes a successful operation with the specified result. (Inherited from OperationBase.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | InvokeCompleteAction | Invokes the completion callback. (Inherited from OperationBase.) |
![]() | MarkErrorAsHandled | Specifies that an error encountered in an operation is handled. (Inherited from OperationBase.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | OnPropertyChanged | Called when the value of a property changes. (Inherited from OperationBase.) |
![]() | RaisePropertyChanged | Raises the System#ComponentModel#INotifyPropertyChanged#PropertyChanged event. (Inherited from OperationBase.) |
![]() | ToString | (Inherited from Object.) |
![]() | UpdateResults | Updates the observable result collections. |
| Name | Description | |
|---|---|---|
![]() ![]() | INotifyPropertyChanged.PropertyChanged | Occurs when a property value changes. (Inherited from OperationBase.) |
' Create an EntityQuery of type Customer Dim query As EntityQuery(Of Customer) = _ From c In _customerContext.GetCustomersQuery() _ Where (c.Phone.StartsWith("583")())() _ Order By (c.LastName) _ Select c() ' Create and execute a LoadOperation of type Customer and load 'query' Dim loadOp As LoadOperation = Me._customerContext.Load(query) ' Create a new DomainOperationException for a Validation Error Dim opEx As DomainOperationException = New DomainOperationException( _ "Validation Error", _ OperationErrorStatus.ValidationError, _ 9466) ' Check if there are any ValidationErrors when loadOp was executed ' Then throw the DomainOperationException opEx If loadOp.ValidationErrors <> Empty Then Throw opEx End If ' Populate the CustomerGrid with the Entities in loadOp CustomerGrid.ItemsSource = loadOp.Entities
Show:

