如何在 .NET Core 2.1 中使用 System.Security.Principal.WindowsIdent



我们如何在.NET Core 2.1中使用WindowsIdentity

它在 2.0 中可用

.NET API 浏览器

  • https://learn.microsoft.com/en-us/dotnet/api/?term=WindowsIdentity&view=netcore-2.0WindowsIdentity可用
  • https://learn.microsoft.com/en-us/dotnet/api/?term=WindowsIdentity&view=netcore-2.1WindowsIdentity不可用

您可以使用以下方法找到当前的 Windows 用户名:System.Environment.UserName.

相关内容

最新更新