_Application.AddAddress(Array, Array) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an entry to the address book.
public:
void AddAddress(Array ^ % TagID, Array ^ % Value);
public void AddAddress (ref Array TagID, ref Array Value);
abstract member AddAddress : Array * Array -> unit
Public Sub AddAddress (ByRef TagID As Array, ByRef Value As Array)
Parameters
- TagID
- Array
Required string Array. The tag ID values for the new address entry. Each element in the array can contain one of the strings listed in the following table. Only the display name is required; the remaining entries are optional.Tag IDDescriptionPR_DISPLAY_NAMEName displayed in the Address Book dialog boxPR_DISPLAY_NAME_PREFIXTitle (for example, "Ms." or "Dr.")PR_GIVEN_NAMEFirst namePR_SURNAMELast namePR_STREET_ADDRESSStreet addressPR_LOCALITYCity or localityPR_STATE_OR_PROVINCEState or provincePR_POSTAL_CODEPostal codePR_COUNTRYCountry/RegionPR_TITLEJob titlePR_COMPANY_NAMECompany namePR_DEPARTMENT_NAMEDepartment name within the companyPR_OFFICE_LOCATIONOffice locationPR_PRIMARY_TELEPHONE_NUMBERPrimary telephone numberPR_PRIMARY_FAX_NUMBERPrimary fax numberPR_OFFICE_TELEPHONE_NUMBEROffice telephone numberPR_OFFICE2_TELEPHONE_NUMBERSecond office telephone numberPR_HOME_TELEPHONE_NUMBERHome telephone numberPR_CELLULAR_TELEPHONE_NUMBERCellular telephone numberPR_BEEPER_TELEPHONE_NUMBERBeeper telephone numberPR_COMMENTText included on the Notes tab for the address entryPR_EMAIL_ADDRESSElectronic mail addressPR_ADDRTYPEElectronic mail address typePR_OTHER_TELEPHONE_NUMBERAlternate telephone number (other than home or office)PR_BUSINESS_FAX_NUMBERBusiness fax numberPR_HOME_FAX_NUMBERHome fax numberPR_RADIO_TELEPHONE_NUMBERRadio telephone numberPR_INITIALSInitialsPR_LOCATIONLocation, in the format buildingnumber/roomnumber (for example, 7/3007 represents room 3007 in building 7)PR_CAR_TELEPHONE_NUMBERCar telephone number
- Value
- Array
Required string Array. The values for the new address entry. Each element corresponds to an element in the TagID
array.
Remarks
Each entry has values for one or more tag IDs.