Export (0) Print
Expand All

ChangeOperationResponse Class

Results returned after a call to SaveChanges when enumerating operation responses returned by the DataServiceResponse class.

System.Object
  System.Data.Services.Client.OperationResponse
    System.Data.Services.Client.ChangeOperationResponse

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

public sealed class ChangeOperationResponse : OperationResponse

The ChangeOperationResponse type exposes the following members.

  NameDescription
Public propertyDescriptorGets the EntityDescriptor or LinkDescriptor modified by a change operation.
Public propertyErrorGets error thrown by the operation. (Inherited from OperationResponse.)
Public propertyHeadersWhen overridden in a derived class, contains the HTTP response headers associated with a single operation. (Inherited from OperationResponse.)
Public propertyStatusCodeWhen overridden in a derived class, gets or sets the HTTP response code associated with a single operation. (Inherited from OperationResponse.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

ChangeOperationResponse objects are not intended to be constructed directly by a user of this library. Instead, references are returned when enumerating the operation responses returned via the enumerator on the DataServiceResponse class.

SaveChanges submits pending changes to the data service collected by the DataServiceContext since the last call to SaveChanges. Changes are added to the context by calling AddObject, AddLink, DeleteObject, DeleteLink, Detach, DetachLink, and similar methods.

SaveChanges returns a DataServiceResponse that represents the response to all operations sent to the data service. The DataServiceResponse object includes a sequence of ChangeOperationResponse objects that, in turn, contain a sequence of EntityDescriptor or LinkDescriptor instances that represent the changes that were persisted or attempted.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft