[Mono-dev] System.Threading.Thread.CurrentPrincipal.Identity.Name

Vladimir Giszpenc vgiszpenc at dsci.com
Tue Jan 20 13:28:31 EST 2009


Should this return something on Linux (OpenSuse 11.0)?

 

Thanks,

 

Vlad

 

using System;

 

class Eg

{

                static void Main()

                {

                                Console.WriteLine(Environment.UserName);
//This works

 
Console.WriteLine(System.Threading.Thread.CurrentPrincipal.Identity.Name
); //this returns empty string

                }

}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090120/f3d454a3/attachment.html 


More information about the Mono-devel-list mailing list