Get current Windows user name within Silverlight

前端 未结 8 1753
一向
一向 2020-12-02 23:53

Is it possible to get the currently logged in user\'s username with Silverlight? You can assume that user has Windows OS and the Silverlight application is hosted in Interne

相关标签:
8条回答
  • 2020-12-03 00:24
    Environment
        .GetFolderPath(Environment.SpecialFolder.Personal)
        .Split(new[] { '\\' }, StringSplitOptions.RemoveEmptyEntries)[2];
    
    0 讨论(0)
  • 2020-12-03 00:25

    well , here is how you can get it wihtout wcf

    http://www.codeproject.com/Articles/47520/Silverlight-Windows-User-Identity-Name

    0 讨论(0)
提交回复
热议问题