How to check if the current user is administrator ~ Don't Call Us - We'll Call You
skip to main
|
skip to sidebar
Don't Call Us - We'll Call You
Tuesday, March 3, 2009
How to check if the current user is administrator
bool isAdmin = new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Tags
.NET Framework
AJAX / JS
Anti-Patterns
AOP - Aspect Oriented Programming
Best Practices
Books
Business
CI - Continous Integration
DDD - Domain Driven Design
Design Patterns
DI - Dependency Injection
DRY - Don't Repeat Yourself
Entity Framework
Frameworks
Google Adsense
Google Docs
IA - Information Architecture
IoC - Inversion of Control
LoD - Law of Demeter
MVC - Model View Controller
MVVM - Model-View-View Model
OO Design Principles
Podcasts
Programming
Quotes
Resharper
Scrum
SEO - Search Engine Optimization
SO - StackOverflow
sof
Software Architecture
Software Development Videos
Sql Server
TDD - Test Driven Development
Tell Don't Ask
Usability
Visual Studio Tips
WPF - Windows Presentation Foundation
XYZ - Misc
RSS feed
Posts
Atom
Posts
Comments
Atom
Comments
Followers
Julegaver og julegavetips
fra Webby
Blog Archive
►
2015
(3)
►
February
(3)
►
2014
(1)
►
October
(1)
►
2010
(3)
►
September
(1)
►
July
(1)
►
January
(1)
▼
2009
(100)
►
September
(1)
►
August
(4)
►
July
(2)
►
June
(11)
►
May
(14)
►
April
(6)
▼
March
(9)
Weekend Reading
How to create a custom url protocol
Custom file types: How to assiciate files with app...
InfoQ: AOP - Myths and truths
AOP: INotifyPropertyChanged
SyntaxHighligter: Nice code formatting on your blo...
How to check if the current user is administrator
Frameworks and DDD: Keeping the Model Clean
REGSVR32 VS REGASM
►
February
(53)
About Me
omichael
View my complete profile
Blogroll
WebmasterWorld
Miško Hevery
Coding Horror
Webforumet.no - Webmaster forum
Simple Talk rss feed
microsoft.public.dotnet.languages.csharp Google Group
Kuttisme.no - En blogg om internettmarkedsføring, webutvikling og webanalyse
Scott Hanselman's Computer Zen
MSDN Code Gallery
The Lounge latest postings
Guy kolbis
ScottGu's Blog
Larkware News
Coding4Fun
ITpro
Devlicio.us
Jensen Harris: An Office User Interface Blog
Stevey's Blog Rants
Web Designer Wall - Design Trends and Tutorials
ReadWriteWeb Weekly Wrapups
Interoperability Happens
CodeBetter.Com
Channel 9
Wired: Top Stories
Stephen Toub
Subscribe
Posts
Atom
Posts
Comments
Atom
Comments
No comments:
Post a Comment