Retrieve user name using .NET / How to get user name using C#
The following code will get the user name of the computer
Console.WriteLine("User Name := " + Environment.UserName);
Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks
Retrieve user name using .NET / How to get user name using C#
The following code will get the user name of the computer
Console.WriteLine("User Name := " + Environment.UserName);
No comments:
Post a Comment