public static bool IsValidGroupLocator(string legacyExchangeDn, ExchangeObjectVersion objectVersion, RecipientTypeDetails recipientTypeDetails) { return(MailboxLocatorValidator.IsValidMailboxLocator(legacyExchangeDn, objectVersion) && recipientTypeDetails == RecipientTypeDetails.GroupMailbox); }
public static bool IsValidUserLocator(string legacyExchangeDn, ExchangeObjectVersion objectVersion, RecipientTypeDetails recipientTypeDetails) { return(MailboxLocatorValidator.IsValidMailboxLocator(legacyExchangeDn, objectVersion) && (recipientTypeDetails == RecipientTypeDetails.UserMailbox || recipientTypeDetails == RecipientTypeDetails.MailUser)); }