RemoveUserFromRole() public static method

public static RemoveUserFromRole ( string userName, string roleName ) : bool
userName string
roleName string
return bool
Esempio n. 1
0
 public bool RemoveFromRole(string roleName)
 {
     if (SecurityData.IsUserInRole(this.UserName, roleName))
     {
         SecurityData.RemoveUserFromRole(this.UserName, roleName);
         return(true);
     }
     else
     {
         return(false);
     }
 }
 public bool RemoveFromRole(string roleName)
 {
     return(SecurityData.RemoveUserFromRole(this.UserName, roleName));
 }