private static RecipientDisplayType GetRecipientDisplayTypeInNativeForest(RecipientDisplayType recipientDisplayType) { if (!DisplayTypeExProperty.IsLocalForestRecipient(recipientDisplayType)) { return(DisplayTypeExProperty.GetRecipientDisplayTypeInForeignForest(recipientDisplayType)); } return(DisplayTypeExProperty.GetRecipientDisplayTypeInLocalForest(recipientDisplayType)); }
private static LegacyRecipientDisplayType GetLegacyRecipientDisplayType(RecipientDisplayType recipientDisplayType) { LegacyRecipientDisplayType legacyRecipientDisplayType = (LegacyRecipientDisplayType)(DisplayTypeExProperty.GetRecipientDisplayTypeInLocalForest(recipientDisplayType) & (RecipientDisplayType)255); if (EnumValidator.IsValidValue <LegacyRecipientDisplayType>(legacyRecipientDisplayType)) { return(legacyRecipientDisplayType); } if (legacyRecipientDisplayType != (LegacyRecipientDisplayType)9) { return(LegacyRecipientDisplayType.MailUser); } return(LegacyRecipientDisplayType.DistributionList); }