private MailboxFolderUserId(PermissionSecurityPrincipal.SpecialPrincipalType specialPrincipalType) { switch (specialPrincipalType) { case PermissionSecurityPrincipal.SpecialPrincipalType.Default: this.userType = MailboxFolderUserId.MailboxFolderUserType.Default; return; } this.userType = MailboxFolderUserId.MailboxFolderUserType.Anonymous; }
public PermissionSecurityPrincipal(PermissionSecurityPrincipal.SpecialPrincipalType specialPrincipalType) { EnumValidator.ThrowIfInvalid <PermissionSecurityPrincipal.SpecialPrincipalType>(specialPrincipalType, "specialPrincipalType"); this.type = PermissionSecurityPrincipal.SecurityPrincipalType.SpecialPrincipal; this.specialPrincipalType = specialPrincipalType; }