public static AddressBookBase FindAddressBook(string base64Guid, UserContext userContext) { if (base64Guid == null) { throw new ArgumentNullException("base64Guid"); } if (userContext == null) { throw new ArgumentNullException("userContext"); } Guid guid; try { guid = new Guid(Convert.FromBase64String(base64Guid)); } catch (FormatException) { return(null); } catch (ArgumentException) { return(null); } return(DirectoryAssistance.FindAddressBook(guid, userContext)); }
public static bool IsADRecipientRoom(ADRecipient adRecipient) { if (adRecipient == null) { throw new ArgumentException("adRecipient"); } return(DirectoryAssistance.IsADRecipientRoom(adRecipient.RecipientDisplayType)); }