Interface IPermissionObject
Interface that describes the shared base model of all Permission classes.
Namespace:Realms.Sync
Assembly:Realm.Sync.dll
Syntax
public interface IPermissionObject
Properties
| Improve this Doc View SourceCreatedAt
Gets the creation time of this object.
Declaration
DateTimeOffset CreatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset | A DateTimeOffset indicating the object's creation date and time. |
ErrorCode
Gets the ErrorCode if any.
Declaration
ErrorCode? ErrorCode { get; }
Property Value
Type | Description |
---|---|
Nullable<ErrorCode> | An ErrorCode that indicates the reason for the error during processing.
|
Remarks
Filled by the server after an object was processed indicating the status of the operation. If Status returns Error, the ErrorCode property can be used to get a strongly typed code for the error and handle expected error conditions, such as expired offer or attempting to share a realm without having manage access.
Id
Gets the unique identifier of this object in the Management realm.
Declaration
string Id { get; }
Property Value
Type | Description |
---|---|
String | The unique id of the object. |
Status
Gets the ManagementObjectStatus as set by the server.
Declaration
ManagementObjectStatus Status { get; }
Property Value
Type | Description |
---|---|
ManagementObjectStatus | An enum indicating whether the operation has completed successfully. |
StatusMessage
Gets the status message.
Declaration
string StatusMessage { get; }
Property Value
Type | Description |
---|---|
String | A detailed message describing the status (success, error) of the operation. |
Remarks
Filled by the server after an object was processed with additional info explaining the status if necessary.
UpdatedAt
Gets when the object was updated the last time.
Declaration
DateTimeOffset UpdatedAt { get; }
Property Value
Type | Description |
---|---|
DateTimeOffset | A DateTimeOffset indicating the last time the object has been updated. |
Remarks
This will be updated by the server with the current object when the object is processed.