GigaSpaces XAP.NET Documentation
IChangeOperationResult Interface
Class LibraryGigaSpaces.CoreIChangeOperationResult
A single change result which was applied on an object. See the following operations to obtain the relevant constant values in order to extract the data from the change operation
IncrementOperationAddToCollectionOperationAddRangeToCollectionOperationRemoveFromCollectionOperationSetInDictionaryOperationRemoveFromDictionaryOperationSetOperationUnsetOperation

Examples
CopyC#
IChangeResult{MyObject} changeResult = space.Change(new SqlQuery{MyObject}("someField = 'someValue'), 
                                                    new ChangeSet().Increment("counterField", 1), ChangeModifiers.ReturnDetailedResults)
foreach (IChangedEntryDetails{MyObject} changeEntryDetails in changeResult.Results) 
{
  IList{IChangeOperationResult} operations = changeEntryDetails.ChangeOperationsResults;
  foreach(IChangeOperationResult operationResult in operations) 
  {
    if (IncrementOperation.Represents(operationResult.Operation) 
    {
      String path = IncrementOperation.GetPath(operationResult.Operation);
      Number delta = IncrementOperation.GetDelta(operationResult.Operation);
      Number result = IncrementOperation.GetNewValue(operationResult);
      // ... do something with the result, path and delta
    }
    //...
  }
}

Declaration Syntax
C#Visual BasicVisual C++J#
public interface IChangeOperationResult
Public Interface IChangeOperationResult
public interface class IChangeOperationResult
public interface IChangeOperationResult
Members
All MembersProperties



IconMemberDescription
Operation
this change operation

Result
Gets the result of this change operation an a specific entry

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: 16.3.0.0 (16.3.0)