Search Results for

    Show / Hide Table of Contents

    Class Subscription

    A class representing a single query subscription. The server will continuously evaluate the Query that the app subscribed to and will send data that matches it as well as remove data that no longer does.

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

    Properties

    | Improve this Doc View Source

    CreatedAt

    Gets a value indicating when this subscription was created.

    Declaration
    public DateTimeOffset CreatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset

    The creation date/time of the subscription.

    | Improve this Doc View Source

    Name

    Gets the name of the subscription if one was provided at creation time. If no name was provided, then this will return null.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String

    The subscription's name.

    | Improve this Doc View Source

    ObjectType

    Gets the type of objects this subscription refers to.

    Declaration
    public string ObjectType { get; }
    Property Value
    Type Description
    String

    The object type for the subscription.

    Remarks

    If your types are remapped using MapToAttribute, the value returned will be the mapped-to value - i.e. the one that Realm uses internally rather than the name of the C# class.

    | Improve this Doc View Source

    Query

    Gets the query that describes the subscription. Objects matched by the query will be sent to the device by the server.

    Declaration
    public string Query { get; }
    Property Value
    Type Description
    String

    The subscription query.

    | Improve this Doc View Source

    UpdatedAt

    Gets a value indicating when this subscription was last updated.

    Declaration
    public DateTimeOffset UpdatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset

    The date/time of the last update to the subscription.

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