Class Permission
This model is used to reflect permissions granted to a user. It should be used in conjunction with a User's Permission Realm.
Inherited Members
Namespace: Realms.Sync
Assembly: Realm.Sync.dll
Syntax
public class Permission : RealmObject, INotifyPropertyChanged, ISchemaSource, IThreadConfined, NotificationsHelper.INotifiable
Properties
| Improve this Doc View SourceMayManage
Gets a value indicating whether the user inspecting that permission is allowed to manage the permissions for the Realm at the specified Path.
Declaration
[MapTo("mayManage")]
public bool MayManage { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
MayRead
Gets a value indicating whether the user inspecting that permission is allowed to read the Realm at the specified Path.
Declaration
[MapTo("mayRead")]
public bool MayRead { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
MayWrite
Gets a value indicating whether the user inspecting that permission is allowed to write to the Realm at the specified Path.
Declaration
[MapTo("mayWrite")]
public bool MayWrite { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Path
Gets the relative path to the Realm on the server.
Declaration
[Required]
[MapTo("path")]
public string Path { get; }
Property Value
Type | Description |
---|---|
String | A relative path component. |
UpdatedAt
Gets when the object was updated the last time.
Declaration
[MapTo("updatedAt")]
public DateTimeOffset UpdatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset | A DateTimeOffset indicating the last time the object has been updated. |
UserId
Gets the identity of the user affected by this permission.
Declaration
[Required]
[MapTo("userId")]
public string UserId { get; }
Property Value
Type | Description |
---|---|
String | The user identity. |