Interface IPermissionEntity
Encapsulates functionality to associate a principal and a permissions set.
Namespace: Microsoft.GNS.Roster.Internal
Assembly: Microsoft.GNS.Roster.Internal.dll
Syntax
public interface IPermissionEntity
Properties
View SourcePermissions
Gets or sets the permissions flags.
Declaration
PermissionFlags Permissions { get; set; }
Property Value
| Type | Description |
|---|---|
| PermissionFlags |
Principal
Gets the principal in which to set permissions.
Declaration
IRosterPrincipal Principal { get; }
Property Value
| Type | Description |
|---|---|
| IRosterPrincipal |
Methods
View SourceHasPermission(PermissionFlags)
Checks for a specific permission by integer value.
Declaration
bool HasPermission(PermissionFlags value)
Parameters
| Type | Name | Description |
|---|---|---|
| PermissionFlags | value | The permission value to check. |
Returns
| Type | Description |
|---|---|
| bool | True if the principal has the permission. Otherwise false. |