Method MailAccount
- Namespace
- MailFathom.Domain.Access
- Assembly
- MailFathom.Domain.dll
MailAccount(Guid?, IReadOnlyCollection<UserId>)
Places a mail account.
public static AdministrativeTarget MailAccount(Guid? organization, IReadOnlyCollection<UserId> assignedUsers)
Parameters
organizationGuid?The organization the account belongs to, or null for none.
assignedUsersIReadOnlyCollection<UserId>Every user the account is assigned to.
Returns
- AdministrativeTarget
The target, which is one user's alone only where it belongs to an organization and exactly one user is assigned.
Exceptions
- ArgumentNullException
Thrown when
assignedUsersis null.