WindowsIdentity.GetCurrent() : WindowsIdentity « System.Security.Principal « C# / C Sharp by API






WindowsIdentity.GetCurrent()

 

using System;
using System.Security.Principal;

class MainClass
{
    public static void Main (string[] args) 
    {
        
        WindowsIdentity identity = WindowsIdentity.GetCurrent();
    }
}

   
  








Related examples in the same category

1.WindowsIdentity.AuthenticationType
2.WindowsIdentity.Impersonate()
3.WindowsIdentity.IsAnonymous
4.WindowsIdentity.IsAuthenticated
5.WindowsIdentity.IsGuest
6.WindowsIdentity.IsSystem
7.WindowsIdentity.Name
8.WindowsIdentity.Token