Show / Hide Table of Contents

    Class ClassPermission

    An object which describes class-wide permissions.

    Inheritance
    Object
    RealmObject
    ClassPermission
    Implements
    ISchemaSource
    Inherited Members
    RealmObject.PropertyChanged
    RealmObject.IsManaged
    RealmObject.IsValid
    RealmObject.Realm
    RealmObject.ObjectSchema
    RealmObject.BacklinksCount
    RealmObject.Equals(Object)
    RealmObject.RaisePropertyChanged(String)
    RealmObject.OnPropertyChanged(String)
    RealmObject.OnManaged()
    Namespace: Realms.Sync
    Assembly: Realm.Sync.dll
    Syntax
    public class ClassPermission : RealmObject, ISchemaSource, IThreadConfined, NotificationsHelper.INotifiable
    Remarks

    An instance of this object is automatically created in the Realm for class in your schema, and should not be created manually. Call Get<T>(Realm) or Get(Realm, String) to obtain the existing instance, or query ClassPermission as normal.

    Properties

    | Improve this Doc View Source

    Name

    Gets the name of the class which these permissions apply to.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Permissions

    Gets the permissions for this class.

    Declaration
    public IList<Permission> Permissions { get; }
    Property Value
    Type Description
    IList<Permission>

    Methods

    | Improve this Doc View Source

    Get(Realm, String)

    Retrieves the ClassPermission for the given class name. This will return null for non-partial Realms.

    Declaration
    public static ClassPermission Get(Realm realm, string className)
    Parameters
    Type Name Description
    Realm realm

    The Realm instance.

    String className

    The name of a RealmObject subclass whose corresponding ClassPermission will be obtained.

    Returns
    Type Description
    ClassPermission

    A ClassPermission instance that allows you to manipulate the permissions for this class.

    | Improve this Doc View Source

    Get<T>(Realm)

    Retrieves the ClassPermission for the given RealmObject subclass. This will return null for non-partial Realms.

    Declaration
    public static ClassPermission Get<T>(Realm realm)
    
        where T : RealmObject
    Parameters
    Type Name Description
    Realm realm

    The Realm instance.

    Returns
    Type Description
    ClassPermission

    A ClassPermission instance that allows you to manipulate the permissions for this class.

    Type Parameters
    Name Description
    T

    The RealmObject subclass whose corresponding ClassPermission will be obtained.

    Implements

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