How will you programmatically read the identity of the impersonated user ?

Wednesday, August 5, 2009


VB
==
Dim curUser As String = _
System.Security.Principal.WindowsIdentity.GetCurrent().Name

C#
==
String curUser =
System.Security.Principal.WindowsIdentity.GetCurrent().Name;


www.codecollege.NET

0 comments

Post a Comment

www.codecollege.NET

Blog Widget by LinkWithin