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
Wired: Top Stories
Dark Matter May Be Made of Black Holes From Another Universe
11 hours ago
Simple Talk rss feed
When, and when not, to use LLMs in your data pipeline
17 hours ago
Scott Hanselman's Computer Zen
Is the craft dead?
2 months ago
Coding Horror
Launching The Rural Guaranteed Minimum Income Initiative
2 months ago
The Lounge latest postings
Mullet wig? Check. IROC Z-28 Camaro? Check. Megadeth cassette tape? Double Check
1 year ago
WebmasterWorld
Deprecated
3 years ago
Interoperability Happens
2022 Tech Predictions
4 years ago
Channel 9
OData Batching with ASP.NET Core | On .NET
4 years ago
CodeBetter.Com
No Longer a Microsoft MVP–Hello MVP Reconnect
6 years ago
Web Designer Wall - Design Trends and Tutorials
30 Best WordPress Themes of 2019
7 years ago
Stevey's Blog Rants
Why Kotlin Is Better Than Whatever Dumb Language You're Using
8 years ago
Coding4Fun
Editor Enhancements and .Ignore
9 years ago
ScottGu's Blog
I’m speaking at a Free AzureCraft event in London on June 3rd
9 years ago
Devlicio.us
How Passion Saved Windows
11 years ago
MSDN Code Gallery
Export GridView to doc/access/csv/Excel/pdf/xml/html/text/print
12 years ago
Miško Hevery
Video Recording & Slides: Psychology of Testing at Wealthfront Engineering
15 years ago
Stephen Toub
Blogging on pfxteam
15 years ago
Guy kolbis
A Flash (Action Script) Expert…
16 years ago
Webforumet.no - Webmaster forum
microsoft.public.dotnet.languages.csharp Google Group
Kuttisme.no - En blogg om internettmarkedsføring, webutvikling og webanalyse
Larkware News
ITpro
Jensen Harris: An Office User Interface Blog
ReadWriteWeb Weekly Wrapups
Subscribe
Posts
Atom
Posts
Comments
Atom
Comments
No comments:
Post a Comment