Class PermissionCondition
A class describing the condition based on which permissions will be applied.
Inherited Members
Namespace:Realms.Sync
Assembly:Realm.Sync.dll
Syntax
public abstract class PermissionCondition
Methods
| Improve this Doc View SourceEmail(String)
Apply permissions based on the user's Email when using the username/password login provider.
Declaration
public static PermissionCondition Email(string email)
Parameters
Type | Name | Description |
---|---|---|
String | The email (username) of the user that will be affected by this condition. |
Returns
Type | Description |
---|---|
PermissionCondition | A PermissionCondition containing information about the user's email. |
KeyValue(String, String)
Apply permissions based on a key/value combination in the user's metadata.
Declaration
public static PermissionCondition KeyValue(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
String | key | The metadata key to look for. |
String | value | The metadata value that must match the key. |
Returns
Type | Description |
---|---|
PermissionCondition | A PermissionCondition containing information about the key/value combination that will be used for matching against. |
UserId(String)
Apply permissions based on the user's Id.
Declaration
public static PermissionCondition UserId(string userId)
Parameters
Type | Name | Description |
---|---|---|
String | userId | The Id of the user or |
Returns
Type | Description |
---|---|
PermissionCondition | A PermissionCondition containing information about the user's Id. |