Class PermissionChange
Objects of this class allow to change permissions of owned Realms. They are created exclusively by the client and are processed by the server as indicated by the status fields.
Inherited Members
Namespace: Realms.Sync
Assembly: Realm.Sync.dll
Syntax
public class PermissionChange : RealmObject, ISchemaSource, IThreadConfined, NotificationsHelper.INotifiable, IPermissionObject, IStatusObject
Remarks
PermissionChange objects allow to grant and revoke permissions by setting MayRead, MayWrite and MayManage accordingly. If any of these flags are not set, these are merged with either the existing or default permissions as applicable. As a side-effect this causes that the default permissions are permanently materialized for the affected Realm files and the affected user. Once the request has been processed, the Status, StatusMessage, and ErrorCode will be updated accordingly.
Properties
| Improve this Doc View SourceCreatedAt
Declaration
public DateTimeOffset CreatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
ErrorCode
Declaration
public ErrorCode? ErrorCode { get; }
Property Value
Type | Description |
---|---|
Nullable<ErrorCode> |
Id
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
String |
MayManage
Gets a value indicating whether the user(s) have manage access to the specified Realm(s).
Declaration
public bool? MayManage { get; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
|
MayRead
Gets a value indicating whether the user(s) have read access to the specified Realm(s).
Declaration
public bool? MayRead { get; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
|
MayWrite
Gets a value indicating whether the user(s) have write access to the specified Realm(s).
Declaration
public bool? MayWrite { get; }
Property Value
Type | Description |
---|---|
Nullable<Boolean> |
|
MetadataKey
Gets the metadata key (if any) of the user(s) to effect.
Declaration
public string MetadataKey { get; }
Property Value
Type | Description |
---|---|
String | A metadata key or null if the change is not based on metadata values. |
MetadataValue
Gets the metadata value (if any) of the user(s) to effect.
Declaration
public string MetadataValue { get; }
Property Value
Type | Description |
---|---|
String | A value corresponding to MetadataKey or null if the change is not based on metadata values. |
RealmUrl
Gets the Realm to change permissions for.
Declaration
public string RealmUrl { get; }
Property Value
Type | Description |
---|---|
String |
|
Status
Declaration
public ManagementObjectStatus Status { get; }
Property Value
Type | Description |
---|---|
ManagementObjectStatus |
StatusCode
Declaration
public int? StatusCode { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Int32> |
StatusMessage
Declaration
public string StatusMessage { get; }
Property Value
Type | Description |
---|---|
String |
UpdatedAt
Declaration
public DateTimeOffset UpdatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
UserId
Gets the user or users to effect.
Declaration
public string UserId { get; }
Property Value
Type | Description |
---|---|
String |
|
Methods
| Improve this Doc View SourceOnPropertyChanged(String)
Declaration
protected override void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName |