through the UserPrincipal Class I can set the UserPrincipalName and thus when my user is created the first part of the User logon name is populated:
up.UserPrincipalName = "ryan.anthony3";
produces the following result:
however that drop down is empty unless I choose one of the options through the interface
I'd like to set one of the available options programmatically using this UserPrincipal class if possible... is that possible?
I am not seeing a setter for it here: http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement.userprincipal%28v=vs.110%29.aspx
UserPrincipalName is what you're looking for.
Use
up.UserPrincipalName = "[email protected]";