Show / Hide Table of Contents

    Class ThreadSafeReference.Query<T>

    A reference to a IQueryable<T> intended to be passed between threads.

    To resolve a thread-safe reference on a target Realm on a different thread, pass it to Realm.ResolveReference(ThreadSafeReference.Query).

    Inheritance
    Object
    ThreadSafeReference
    ThreadSafeReference.Query<T>
    Inherited Members
    ThreadSafeReference.Create<T>(IQueryable<T>)
    ThreadSafeReference.Create<T>(T)
    ThreadSafeReference.Create<T>(IList<T>)
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace:Realms
    Assembly:Realm.dll
    Syntax
    public class Query<T> : ThreadSafeReference where T : RealmObject
    Type Parameters
    Name Description
    T

    The type of the RealmObject contained in the query.

    Remarks

    A ThreadSafeReference object must be resolved at most once.

    Failing to resolve a ThreadSafeReference will result in the source version of the Realm being pinned until the reference is deallocated.

    Prefer short-lived ThreadSafeReferences as the data for the version of the source Realm will be retained until all references have been resolved or deallocated.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2017 Realm
    Generated by DocFX