ADLib.ActiveDirectory.GetUser C# (CSharp) Метод

GetUser() публичный Метод

Returns the user with the specified ID or null if not found
public GetUser ( string userID, System.DirectoryServices.AccountManagement.PrincipalContext context = null ) : System.DirectoryServices.AccountManagement.UserPrincipal
userID string ID of the user
context System.DirectoryServices.AccountManagement.PrincipalContext
Результат System.DirectoryServices.AccountManagement.UserPrincipal
        public UserPrincipal GetUser(string userID, PrincipalContext context=null)
        {
            //TODO: Handle MultipleMatchesException
            return UserPrincipal.FindByIdentity(context ?? Context, userID);
        }