Exemplo n.º 1
0
 /// <summary>Adds a set of specified permissions to the server group specified with <paramref name="serverGroupId"/>.
 /// Multiple permissions can be added by providing the four parameters of each permission.</summary>
 public CmdR ServerGroupAddPerm(ServerGroupIdT serverGroupId, PermissionId permissionId, int permissionValue,
                                bool permissionNegated, bool permissionSkip)
 => Send("servergroupaddperm",
         new CommandParameter("sgid", serverGroupId),
         new CommandParameter("permsid", permissionId.ToString()),
         new CommandParameter("permvalue", permissionValue),
         new CommandParameter("permnegated", permissionNegated),
         new CommandParameter("permskip", permissionSkip));
 public override string ToString()
 {
     return("PermissionId = " + PermissionId.ToString() + ",RoleId = " + RoleId.ToString() + ",PageId = " + PageId.ToString() + ",CanCreate = " + CanCreate.ToString() + ",CanDelete = " + CanDelete.ToString() + ",CanUpdate = " + CanUpdate.ToString() + ",CanSelect = " + CanSelect.ToString() + ",AssignedBy = " + AssignedBy.ToString() + ",CompanyId = " + CompanyId.ToString());
 }