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 | |
Résultat | System.DirectoryServices.AccountManagement.UserPrincipal |
public UserPrincipal GetUser(string userID, PrincipalContext context=null)
{
//TODO: Handle MultipleMatchesException
return UserPrincipal.FindByIdentity(context ?? Context, userID);
}