Class AccessRightExtensions
Defines extensions for the AccessRight class.
Namespace: Sartorius.SAF.Extensions
Assembly: Sartorius.SAF.dll
Syntax
public static class AccessRightExtensions
Methods
View SourceCanAdd(AccessRight)
Indicates whether data can be added.
Declaration
public static bool CanAdd(this AccessRight accessRights)
Parameters
| Type | Name | Description |
|---|---|---|
| AccessRight | accessRights |
Returns
| Type | Description |
|---|---|
| bool | True if data can be added, otherwise false. |
CanAddValue(AccessRight)
Indicates whether data can be added.
Declaration
public static int CanAddValue(this AccessRight accessRights)
Parameters
| Type | Name | Description |
|---|---|---|
| AccessRight | accessRights |
Returns
| Type | Description |
|---|---|
| int | A value of access rights for Edit permission. |
CanDelete(AccessRight)
Indicates whether data can be deleted.
Declaration
public static bool CanDelete(this AccessRight accessRights)
Parameters
| Type | Name | Description |
|---|---|---|
| AccessRight | accessRights |
Returns
| Type | Description |
|---|---|
| bool | True data can be data, otherwise false. |
CanDeleteValue(AccessRight)
Indicates whether data can be delete.
Declaration
public static int CanDeleteValue(this AccessRight accessRights)
Parameters
| Type | Name | Description |
|---|---|---|
| AccessRight | accessRights |
Returns
| Type | Description |
|---|---|
| int | A value of access rights for Edit permission. |
CanEdit(AccessRight)
Indicates whether data can be edited.
Declaration
public static bool CanEdit(this AccessRight accessRights)
Parameters
| Type | Name | Description |
|---|---|---|
| AccessRight | accessRights |
Returns
| Type | Description |
|---|---|
| bool | True if data can be edited, otherwise false. |
CanEditValue(AccessRight)
Indicates whether data can be edited.
Declaration
public static int CanEditValue(this AccessRight accessRights)
Parameters
| Type | Name | Description |
|---|---|---|
| AccessRight | accessRights |
Returns
| Type | Description |
|---|---|
| int | A value of access rights for Edit permission. |
CanRead(AccessRight)
Indicates whether data can be read.
Declaration
public static bool CanRead(this AccessRight accessRights)
Parameters
| Type | Name | Description |
|---|---|---|
| AccessRight | accessRights |
Returns
| Type | Description |
|---|---|
| bool | True if data can be read, otherwise false. |