Enum ClassPrivileges
A description of the actual privileges which apply to a Class within a Realm.
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
[Flags]
public enum ClassPrivileges : byte
Remarks
This is a combination of all of the privileges granted to all of the Roles which the current User is a member of, obtained by calling GetPrivileges(Realm, String) or GetPrivileges<T>(Realm).
Fields
Name | Description |
---|---|
Create | If this flag is not present, creating new objects of this type is not permitted. Write transactions creating objects can be performed locally, but the objects will be deleted by the server when synchronization occurs. |
Read | If this flag is not present, the current User is not permitted to see objects of this type, and attempting to query this class will always return empty results. |
SetPermissions | If this flag is not present, no modifications to the permissions property of the ClassPermission object for this type are permitted. Write transactions can be performed locally, but any changes made will be reverted by the server. |
Subscribe | If this flag is not present, the User is not permitted to create new subscriptions for this class. Local queries against the objects within the Realm will work, but new subscriptions will never add objects to the Realm. |
Update | If this flag is not present, no modifications to objects of this type are permitted. Write transactions modifying the objects can be performed locally, but any changes made will be reverted by the server. |