Show / Hide Table of Contents

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 Source

CanAdd(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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

  • View Source
Back to top Generated by DocFX