| Constructor and Description |
|---|
Contact(ExchangeService service)
Initializes an unsaved local instance of
Contact. |
Contact(ItemAttachment parentAttachment)
Initializes a new instance of the
Contact class. |
| Modifier and Type | Method and Description |
|---|---|
static Contact |
bind(ExchangeService service,
ItemId id)
Binds to an existing contact and loads its first class property.
|
static Contact |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
Binds to an existing contact and loads the specified set of property.
|
String |
getAlias()
Gets the Alias from the directory
|
String |
getAssistantName()
Gets the contact's assistant name.
|
Date |
getBirthday()
Gets the contact's assistant name.
|
String |
getBusinessHomePage()
Gets the business home page of the contact.
|
StringList |
getChildren()
Gets a list of children for the contact.
|
StringList |
getCompanies()
Gets a list of companies for the contact.
|
String |
getCompanyName()
Gets the company name of the contact.
|
CompleteName |
getCompleteName()
Gets the complete name of the contact.
|
FileAttachment |
getContactPictureAttachment()
Retrieves the file attachment that holds the contact's picture.
|
ContactSource |
getContactSource()
Gets the source of the contact.
|
String |
getDepartment()
Gets the department of the contact.
|
String |
getDirectoryId()
Gets the DirectoryID as Guid or DN string
|
byte[] |
getDirectoryPhoto()
Gets the Photo from the directory
|
EmailAddressCollection |
getDirectReports()
Get the direct reports mailbox information
|
String |
getDisplayName()
Gets the display name of the contact.
|
EmailAddressDictionary |
getEmailAddresses()
Gets an indexed list of e-mail addresses for the contact.
|
String |
getFileAs()
Gets the name under which this contact is filed as.
|
FileAsMapping |
getFileAsMapping()
Gets a value indicating how the FileAs property should be
automatically calculated.
|
String |
getGeneration()
Gets the generation of the contact.
|
String |
getGivenName()
Gets the given name of the contact.
|
Boolean |
getHasPicture()
Gets a value indicating whether this contact has a picture associated
with it.
|
ImAddressDictionary |
getImAddresses()
Gets an indexed list of Instant Messaging addresses for the contact.
|
String |
getInitials()
Gets the initials of the contact.
|
String |
getJobTitle()
Gets the contact's job title.
|
String |
getManager()
Gets the name of the contact's manager.
|
EmailAddress |
getManagerMailbox()
Gets the manager mailbox information
|
String |
getMiddleName()
Gets the middle name of the contact.
|
String |
getMileage()
Gets the mileage for the contact.
|
ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version.
|
byte[][] |
getMSExchangeCertificate()
Gets the MSExchange certificate from the directory
|
String |
getNickName()
Gets the nick name of the contact.
|
String |
getNotes()
Get the Notes from the directory
|
String |
getOfficeLocation()
Gets the location of the contact's office.
|
PhoneNumberDictionary |
getPhoneNumbers()
Gets an indexed list of phone numbers for the contact.
|
String |
getPhoneticFirstName()
Gets the funn phonetic name from the directory
|
String |
getPhoneticFullName()
Gets the funn phonetic name from the directory
|
String |
getPhoneticLastName()
Gets the phonetic last name from the directory
|
PhysicalAddressDictionary |
getPhysicalAddresses()
Gets an indexed list of physical addresses for the contact.
|
PhysicalAddressIndex |
getPostalAddressIndex()
Gets the index of the contact's postal address.
|
String |
getProfession()
Gets the contact's profession.
|
ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object.
|
String |
getSpouseName()
Gets the name of the contact's spouse.
|
String |
getSurname()
Gets the surname of the contact.
|
byte[][] |
getUserSMIMECertificate()
Gets the User SMIME certificate from the directory
|
Date |
getWeddingAnniversary()
Gets the date of the contact's wedding anniversary.
|
void |
removeContactPicture()
Removes the contact's picture.
|
void |
setAssistantName(String value)
Sets the assistant name.
|
void |
setBirthday(Date value)
Sets the birthday.
|
void |
setBusinessHomePage(String value)
Sets the business home page.
|
void |
setChildren(StringList value)
Sets the children.
|
void |
setCompanies(StringList value)
Sets the companies.
|
void |
setCompanyName(String value)
Sets the company name.
|
void |
setContactPicture(byte[] content)
Sets the contact's picture using the specified byte array.
|
void |
setContactPicture(InputStream contentStream)
Sets the contact's picture using the specified stream.
|
void |
setContactPicture(String fileName)
Sets the contact's picture using the specified file.
|
void |
setDepartment(String value)
Sets the department.
|
void |
setDisplayName(String value)
Sets the display name.
|
void |
setFileAs(FileAsMapping value)
Sets the file as.
|
void |
setFileAs(String value)
Sets the file as.
|
void |
setGeneration(String value)
Sets the generation.
|
void |
setGivenName(String value)
Sets the given name.
|
void |
setInitials(String value)
Sets the initials.
|
void |
setJobTitle(String value)
Sets the job title.
|
void |
setManager(String value)
Sets the manager.
|
void |
setMiddleName(String value)
Sets the middle name.
|
void |
setMileage(String value)
Sets the mileage.
|
void |
setNickName(String value)
Sets the nick name.
|
void |
setOfficeLocation(String value)
Sets the office location.
|
void |
setPostalAddressIndex(PhysicalAddressIndex value)
Sets the postal address index.
|
void |
setProfession(String value)
Sets the profession.
|
void |
setSpouseName(String value)
Sets the spouse name.
|
void |
setSurname(String value)
Sets the surname.
|
void |
setWeddingAnniversary(Date value)
Sets the wedding anniversary.
|
void |
validate()
Validates this instance.
|
copy, copy, delete, getAllowedResponseActions, getAttachments, getBody, getCategories, getConversationId, getCulture, getDateTimeCreated, getDateTimeReceived, getDateTimeSent, getDefaultAffectedTaskOccurrences, getDefaultSendCancellationsMode, getDefaultSendInvitationsMode, getDefaultSendInvitationsOrCancellationsMode, getDisplayCc, getDisplayTo, getEffectiveRights, getExtendedProperties, getHasAttachments, getId, getIdPropertyDefinition, getImportance, getInReplyTo, getInternetMessageHeaders, getIsAssociated, getIsDraft, getIsFromMe, getIsNew, getIsReminderSet, getIsResend, getIsSubmitted, getIsTimeZoneHeaderRequired, getIsUnmodified, getItemClass, getLastModifiedName, getLastModifiedTime, getMimeContent, getParentAttachment, getParentFolderId, getReminderDueBy, getReminderMinutesBeforeStart, getRootItemId, getSensitivity, getSize, getSubject, getUniqueBody, getWebClientEditFormQueryString, getWebClientReadFormQueryString, hasUnprocessedAttachmentChanges, internalCreate, internalDelete, internalLoad, internalUpdate, isAttachment, move, move, removeExtendedProperty, save, save, save, setBody, setCategories, setCulture, setExtendedProperty, setImportance, setInReplyTo, setIsReminderSet, setItemClass, setMimeContent, setReminderDueBy, setReminderMinutesBeforeStart, setSensitivity, setSubject, throwIfThisIsAttachment, updateaddServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getChangeXmlElementName, getDeleteFieldXmlElementName, getIsCustomDateTimeScopingRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getSetFieldXmlElementName, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, writeToXml, writeToXmlForUpdatepublic Contact(ExchangeService service) throws Exception
Contact.
To bind to an existing contact, use Contact.Bind() instead.service - the serviceException - the exceptionpublic Contact(ItemAttachment parentAttachment) throws Exception
Contact class.parentAttachment - the parent attachmentException - the exceptionpublic static Contact bind(ExchangeService service, ItemId id, PropertySet propertySet) throws Exception
service - the serviceid - the idpropertySet - the property setException - the exceptionpublic static Contact bind(ExchangeService service, ItemId id) throws Exception
service - the serviceid - the idException - the exceptionpublic ServiceObjectSchema getSchema()
public ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion in class Itempublic void setContactPicture(byte[] content) throws Exception
content - the new contact pictureException - the exceptionpublic void setContactPicture(InputStream contentStream) throws Exception
contentStream - the new contact pictureException - the exceptionpublic void setContactPicture(String fileName) throws Exception
fileName - the new contact pictureException - the exceptionpublic FileAttachment getContactPictureAttachment() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void removeContactPicture() throws Exception
Exception - the exceptionpublic void validate() throws ServiceVersionException, Exception
validate in class ItemServiceVersionException - the service version exceptionException - the exceptionpublic String getFileAs() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setFileAs(String value) throws Exception
value - the new file asException - the exceptionpublic FileAsMapping getFileAsMapping() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setFileAs(FileAsMapping value) throws Exception
value - the new file asException - the exceptionpublic String getDisplayName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setDisplayName(String value) throws Exception
value - the new display nameException - the exceptionpublic String getGivenName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setGivenName(String value) throws Exception
value - the new given nameException - the exceptionpublic String getInitials() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setInitials(String value) throws Exception
value - the new initialsException - the exceptionpublic String getMiddleName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setMiddleName(String value) throws Exception
value - the new middle nameException - the exceptionpublic String getNickName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setNickName(String value) throws Exception
value - the new nick nameException - the exceptionpublic CompleteName getCompleteName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic String getCompanyName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setCompanyName(String value) throws Exception
value - the new company nameException - the exceptionpublic EmailAddressDictionary getEmailAddresses() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic PhysicalAddressDictionary getPhysicalAddresses() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic PhoneNumberDictionary getPhoneNumbers() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic String getAssistantName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setAssistantName(String value) throws Exception
value - the new assistant nameException - the exceptionpublic Date getBirthday() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setBirthday(Date value) throws Exception
value - the new birthdayException - the exceptionpublic String getBusinessHomePage() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setBusinessHomePage(String value) throws Exception
value - the new business home pageException - the exceptionpublic StringList getChildren() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setChildren(StringList value) throws Exception
value - the new childrenException - the exceptionpublic StringList getCompanies() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setCompanies(StringList value) throws Exception
value - the new companiesException - the exceptionpublic ContactSource getContactSource() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic String getDepartment() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setDepartment(String value) throws Exception
value - the new departmentException - the exceptionpublic String getGeneration() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setGeneration(String value) throws Exception
value - the new generationException - the exceptionpublic ImAddressDictionary getImAddresses() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic String getJobTitle() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setJobTitle(String value) throws Exception
value - the new job titleException - the exceptionpublic String getManager() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setManager(String value) throws Exception
value - the new managerException - the exceptionpublic String getMileage() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setMileage(String value) throws Exception
value - the new mileageException - the exceptionpublic String getOfficeLocation() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setOfficeLocation(String value) throws Exception
value - the new office locationException - the exceptionpublic PhysicalAddressIndex getPostalAddressIndex() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setPostalAddressIndex(PhysicalAddressIndex value) throws Exception
value - the new postal address indexException - the exceptionpublic String getProfession() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setProfession(String value) throws Exception
value - the new professionException - the exceptionpublic String getSpouseName() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setSpouseName(String value) throws Exception
value - the new spouse nameException - the exceptionpublic String getSurname() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setSurname(String value) throws Exception
value - the new surnameException - the exceptionpublic Date getWeddingAnniversary() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic void setWeddingAnniversary(Date value) throws Exception
value - the new wedding anniversaryException - the exceptionpublic Boolean getHasPicture() throws ServiceLocalException
ServiceLocalException - the service local exceptionpublic String getPhoneticFullName() throws Exception
Exceptionpublic String getPhoneticFirstName() throws Exception
Exceptionpublic String getPhoneticLastName() throws ServiceLocalException
ServiceLocalExceptionpublic String getAlias() throws ServiceLocalException
ServiceLocalExceptionpublic String getNotes() throws ServiceLocalException
ServiceLocalExceptionpublic byte[] getDirectoryPhoto() throws ServiceLocalException
ServiceLocalExceptionpublic byte[][] getUserSMIMECertificate() throws ServiceLocalException
ServiceLocalExceptionpublic byte[][] getMSExchangeCertificate() throws ServiceLocalException
ServiceLocalExceptionpublic String getDirectoryId() throws ServiceLocalException
ServiceLocalExceptionpublic EmailAddress getManagerMailbox() throws ServiceLocalException
ServiceLocalExceptionpublic EmailAddressCollection getDirectReports() throws ServiceLocalException
ServiceLocalExceptionCopyright © 2012–2015 Microsoft. All rights reserved.