Class AccessRightExtensions
Defines extensions for the AccessRight class.
Inheritance
System.Object
AccessRightExtensions
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|---|
System.Boolean | 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 |
---|---|
System.Int32 | 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 |
---|---|
System.Boolean | 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 |
---|---|
System.Int32 | 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 |
---|---|
System.Boolean | 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 |
---|---|
System.Int32 | 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 |
---|---|
System.Boolean | True if data can be read, otherwise false. |