Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
How can I know who is the user that connect to visual studio? I don’t want the computer name , I want to get the user that log on to visual. I tried :

C#
string s=Environment.UserName;


But i get the windows user /:

How can I get the name of the workspace that activates now???

Thanks.
Posted
Updated 27-Feb-14 6:16am
v4
Comments
ZurdoDev 27-Feb-14 8:25am    
Isn't the Windows user the same person that opened Visual Studio? Your question doesn't make much sense to me.
Member 10304617 27-Feb-14 8:34am    
Yes, this is the same person, but this is server that everybody connect with the same userName and password , then each one connect to visual studio via his user name.
Maarten Kools 27-Feb-14 8:48am    
If everyone connects with the same username/password, how are you ever going to figure out who is who?
ZurdoDev 27-Feb-14 12:19pm    
1. So, you actually want the name of the workspace and not the user.
2. You need to reply to the comment so that the user is notified instead of adding a new comment to your own question.
3. I would refer back to the Visual Studio TFS SDK to find out how to get the name of the workspace.
Member 10304617 27-Feb-14 12:44pm    
Ok,you are right.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900