Esempio n. 1
0
 /// <summary>
 /// Get access check result as a specific access.
 /// </summary>
 /// <returns>The specific access.</returns>
 public AccessCheckResultGeneric ToSpecificAccess(Type specific_access_type)
 {
     return(new AccessCheckResultGeneric(Status, GrantedAccess, GenericGrantedAccess, PrivilegesRequired,
                                         GrantedAccess.ToSpecificAccess(specific_access_type),
                                         GenericGrantedAccess.ToSpecificAccess(specific_access_type),
                                         ObjectType, Name, GenerateOnClose));
 }
 /// <summary>
 /// Get access check result as a specific access.
 /// </summary>
 /// <returns>The specific access.</returns>
 public AccessCheckResult <Enum> ToSpecificAccess(Type specific_access_type)
 {
     return(new AccessCheckResult <Enum>(Status, GrantedAccess, GenericGrantedAccess, PrivilegesRequired,
                                         GrantedAccess.ToSpecificAccess(specific_access_type),
                                         GenericGrantedAccess.ToSpecificAccess(specific_access_type),
                                         ObjectType));
 }
Esempio n. 3
0
 /// <summary>
 /// Get access check result as a specific access.
 /// </summary>
 /// <returns>The specific access results.</returns>
 public AccessCheckResult <U> ToSpecificAccess <U>() where U : Enum
 {
     return(new AccessCheckResult <U>(Status, GrantedAccess, GenericGrantedAccess, PrivilegesRequired,
                                      GrantedAccess.ToSpecificAccess <U>(), GenericGrantedAccess.ToSpecificAccess <U>(),
                                      ObjectType, Name, GenerateOnClose));
 }