Results 1 to 2 of 2

Thread: WindowsPrincipal.IsInRole - how to tell if teh role exists?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148

    WindowsPrincipal.IsInRole - how to tell if teh role exists?

    When doing a WindowsPrincipal.IsInRole() on a role other than the built in chappes you get an error if the role doesn't exist. How can you find out if this is the case?

  2. #2
    Addicted Member corwin_ranger's Avatar
    Join Date
    Sep 2004
    Location
    CT
    Posts
    198
    I'm not sure I understand the question. Are you trying to trap the error if it occurs, or are you trying to determine if the role exists before ever trying to base logic on that role?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width