Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. is an administrator

is an administrator

Scheduled Pinned Locked Moved C#
csharpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    likefood
    wrote on last edited by
    #1

    Is it possible (C# programatically) to see if the current user is an administrator-level user?

    -Daniel Typing too fast fro my owngood

    N G L 3 Replies Last reply
    0
    • L likefood

      Is it possible (C# programatically) to see if the current user is an administrator-level user?

      -Daniel Typing too fast fro my owngood

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      IPrincipal.IsInRole [^]


      only two letters away from being an asset

      1 Reply Last reply
      0
      • L likefood

        Is it possible (C# programatically) to see if the current user is an administrator-level user?

        -Daniel Typing too fast fro my owngood

        G Offline
        G Offline
        George L Jackson
        wrote on last edited by
        #3

        Here is another link: http://www.csharphelp.com/archives2/archive303.html[^]

        1 Reply Last reply
        0
        • L likefood

          Is it possible (C# programatically) to see if the current user is an administrator-level user?

          -Daniel Typing too fast fro my owngood

          L Offline
          L Offline
          likefood
          wrote on last edited by
          #4

          I have to sheepishly admit that it was a nefarious idea that created this question. However, if it was possible (the second and unspoken half of my nefarious idea), it would be commonly exploited. Don't worry, I'm not going to try it (my job might be at risk for thinking about doing what I thought about). Thank you for the links!

          -Daniel Typing too fast fro my owngood

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups