A helper method to determine if we can access something or not

Namespace: Contracts.Data
Assembly: Contracts (in Contracts.dll)

Public Shared Function CanAccess( _ 
ByVal user_access As RoleAccessType, _ 
ByVal desired_access As RoleAccessType
) As Boolean
This language is not supported or no code example is available.
public static bool CanAccess( 
RoleAccessType user_access
RoleAccessType desired_access 
)
This language is not supported or no code example is available.
public:  
static bool CanAccess( 
RoleAccessType user_access
RoleAccessType desired_access 
)
This language is not supported or no code example is available.
public static function CanAccess( 
user_access : RoleAccessType
desired_access : RoleAccessType 
) : boolean;
This language is not supported or no code example is available.

Parameters

user_access
Type: RoleAccessType

the user access we're checking

desired_access
Type: RoleAccessType

what we're seeing they have access to

Return Value

Type: bool

whether or not they can access

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1