A UserPrincipal equivalent to DirectoryEntry.Invoke?
问题 I'm updating code that interacts with the AD in our application. The current code uses the ActiveDs interface. I'm changing the code to use the System.DirectoryServices.AccountManagement namespace. Our application allows a user to store a password hint. This is stored in the AD under a user defined parameter. I know I can do this with the DirectoryEntry.Invoke("put") method. Is there anyway to do this with UserPrincipal, or do I need to call the GetUnderlyingObject method and then the