Obtain a WindowsIdentity object representing the currently logged on Windows user : WindowsIdentity : Security C# Examples


C# Examples » Security » WindowsIdentity »

 

Obtain a WindowsIdentity object representing the currently logged on Windows user









    
using  System;
using  System.Security.Principal;

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




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Security
» WindowsIdentity