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

    | Edit this page 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
    int[]

    An array, containing the indices of the deleted objects.

    | Edit this page 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
    int[]

    An array, containing the indices of the inserted objects.

    | Edit this page 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
    bool

    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>.

    | Edit this page 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
    int[]

    An array, containing the indices of the modified objects.

    | Edit this page View Source

    Moves

    Gets the rows in the collection which moved.

    Declaration
    public ChangeSet.Move[] Moves { get; }
    Property Value
    Type Description
    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.

    | Edit this page 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
    int[]

    An array, containing the indices of the modified objects.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX