/** * Sets the checks if is contact photo. * * @param isContactPhoto the new checks if is contact photo * @throws ServiceVersionException the service version exception */ public void setIsContactPhoto(boolean isContactPhoto) throws ServiceVersionException { EwsUtilities.validatePropertyVersion( this.getOwner().getService(), ExchangeVersion.Exchange2010, "IsContactPhoto"); this.throwIfThisIsNotNew(); this.isContactPhoto = isContactPhoto; }
/** * Gets a value indicating whether this attachment is a contact photo. * * @return true, if is contact photo * @throws ServiceVersionException the service version exception */ public boolean isContactPhoto() throws ServiceVersionException { EwsUtilities.validatePropertyVersion( this.getOwner().getService(), ExchangeVersion.Exchange2010, "IsContactPhoto"); return this.isContactPhoto; }