这里是代码: UserName = System.DirectoryServices.AccountManagement.UserPrincipal.Current.UserPrincipalName;