[This is preliminary documentation and is subject to change.]
Imports contacts from a VCard file into a particular address book.
Namespace:
OfficeClip.DBLayer.AccountAssembly: OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0
Syntax
C# |
---|
public DataTable ImportAddressBookEntriesFromVCard( HttpPostedFile postedFile, int selectedOption, int addressbookId, ref int status ) |
Visual Basic (Declaration) |
---|
Public Function ImportAddressBookEntriesFromVCard ( _ postedFile As HttpPostedFile, _ selectedOption As Integer, _ addressbookId As Integer, _ ByRef status As Integer _ ) As DataTable |
Visual C++ |
---|
public: DataTable^ ImportAddressBookEntriesFromVCard( HttpPostedFile^ postedFile, int selectedOption, int addressbookId, int% status ) |
Parameters
- postedFile
- Type: System.Web..::.HttpPostedFile
The posted (uploaded) VCard File.
- selectedOption
- Type: System..::.Int32
Integer flag indicating what should be done when a member being imported is already present in the Address Book. 1 = Overwrite OfficeClip information with the file item imported. 2 = Do not import names which are already in OfficeClip. 3 = Allow duplicates to be merged with the OfficeClip information.
- addressbookId
- Type: System..::.Int32
The unique id of the address book
- status
- Type: System..::.Int32%
Return status. 0 if successful, -1 the file is not in the vCard -2 the file is ill-formed -3 vCard file Version not supported
Return Value
DataTable consisting of name email Address and status of the result of individual import of each address book entry. The DataTable consists of the following columns.- name (System.String)Name of the Contact being imported.
- emailAddress (System.String)Email Address of the address book entry being imported.
- status (System.Int32) This flag indicates the result of individual import into the Address Book. 0 when Import was successful, -1 in case of an error.
Remarks
There is no password generated nor any email sent while importing a address book entry in the address book.