kamagra how much to take

Display A SharePoint Users Role Collection

This snippet shows you how to display a particular users set of roles based on the user name parameter.

  1. int Roles = Site.Roles.Count;
  2. for (int iRole = 0; iRole < nRoles; iRole++)
  3. {
  4.         SPRole Role = Site.Roles[iRole];
  5.         UInt32 hexPermMask = (UInt32)Role.PermissionMask;
  6.         lstSiteRoles.Items.Add(
  7.         "Role" + iRole.ToString() + ": "
  8.         + Role.Name
  9.         + " [Type:" + Role.Type.ToString()
  10.         + " PermMask:"
  11.         + hexPermMask.ToString("X4") + " " + Role.PermissionMask.ToString() + " "
  12.         + "]" );
  13. }
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>