Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the logged in user's window's credentials in a WPF application

I have a little application I build that monitors tickets submitted. It basically just sits there in the corner and notifies when new tickets arrive. I need to get the persons username who is logged into the computer to pull their tickets.

I tried searching, but I think I'm using the wrong terminology as I couldn't really find anything.

like image 905
Jhorra Avatar asked May 21 '10 21:05

Jhorra


1 Answers

You're looking for the Environment.UserName property.

You may also be looking for the Environment.UserDomainName property.

like image 144
SLaks Avatar answered Nov 03 '22 01:11

SLaks