Search Results for

    Show / Hide Table of Contents

    Class ChangeSet

    A ChangeSet describes the changes inside a IRealmCollection<T> since the last time the notification callback was invoked.

    Inheritance
    Object
    ChangeSet
    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public class ChangeSet

    Properties

    | Improve this Doc View Source

    DeletedIndices

    Gets the indices of objects in the previous version of the IRealmCollection<T> which have been removed from this one.

    Declaration
    public int[] DeletedIndices { get; }
    Property Value
    Type Description
    Int32[]

    An array, containing the indices of the deleted objects.

    | Improve this Doc View Source

    InsertedIndices

    Gets the indices in the new version of the IRealmCollection<T> which were newly inserted.

    Declaration
    public int[] InsertedIndices { get; }
    Property Value
    Type Description
    Int32[]

    An array, containing the indices of the inserted objects.

    | Improve this Doc View Source

    IsCleared

    Gets a value indicating whether the collection has been cleared. The collection is cleared after calling methods such as Clear().

    Declaration
    public bool IsCleared { get; }
    Property Value
    Type Description
    Boolean

    true if the collection has been cleared; false otherwise.

    Remarks

    Note that this will work only with collection properties, such as IList<T> and ISet<T>.

    | Improve this Doc View Source

    ModifiedIndices

    Gets the indices in the old version of the IRealmCollection<T> which were modified. This means that either the property of an object at that index was modified or the property of of an object it's related to has changed.

    Declaration
    public int[] ModifiedIndices { get; }
    Property Value
    Type Description
    Int32[]

    An array, containing the indices of the modified objects.

    | Improve this Doc View Source

    Moves

    Gets the rows in the collection which moved.

    Declaration
    public ChangeSet.Move[] Moves { get; }
    Property Value
    Type Description
    ChangeSet.Move[]

    An array of ChangeSet.Move structs, indicating the source and the destination index of the moved row.

    Remarks

    Every From index will be present in DeletedIndices and every To index will be present in InsertedIndices.

    | Improve this Doc View Source

    NewModifiedIndices

    Gets the indices in the new version of the IRealmCollection<T> which were modified. Conceptually, it contains the same entries as ModifiedIndices but after the insertions and deletions have been accounted for.

    Declaration
    public int[] NewModifiedIndices { get; }
    Property Value
    Type Description
    Int32[]

    An array, containing the indices of the modified objects.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX