What is the difference between Owner and User (WindowsIdentity)?
问题 When getting the username and/or SID of the current user, what is the preferred method? Is it using: WindowsIdentity.GetCurrent().Owner Or: WindowsIdentity.GetCurrent().User What is the difference between the two? This would be a great question for SuperUser.com, but alas, it's not live yet. Thanks! 回答1: What you usually want is the User. Every security object in windows has permissions and owner. The user is also a security object so it has permissions and owner. The ownership means that the