Check out example codes for "c# user name session". It will help you in understanding the concepts better.

Code Example 1

UserAccount.UserAccountCollection userAccounts = UserAccount.GetInstances("Name='ASPNET'");
foreach ( UserAccount userAccount in userAccounts)
{
MessageBox.Show("Name : "+userAccount.Name
+"\nFullName : "+userAccount.FullName);
}

Learn ReactJs, React Native from akashmittal.com