示例#1
0
文件: NetMAPI.cs 项目: skriap/MapiEx
        /// <summary>
        /// Gets the next contact (assumed you have the contacts folder open)
        /// </summary>
        /// <param name="contact">MAPIContact object</param>
        /// <returns>true on success</returns>
        public bool GetNextContact(out MAPIContact contact)
        {
            IntPtr pContact;

            contact = null;
            if (MAPIGetNextContact(pMAPI, out pContact))
            {
                contact = new MAPIContact(pContact);
            }
            return(contact != null);
        }
示例#2
0
        /// <summary>
        /// Gets the next contact (assuming this is the Contacts folder)
        /// </summary>
        /// <param name="contact">MAPIContact object</param>
        /// <returns>true on success</returns>
        public bool GetNextContact(out MAPIContact contact)
        {
            IntPtr pContact;

            contact = null;
            if (FolderGetNextContact(pObject, out pContact))
            {
                contact = new MAPIContact(pContact);
            }
            return(contact != null);
        }
示例#3
0
 /// <summary>
 /// Gets the next contact (assumed you have the contacts folder open)
 /// </summary>
 /// <param name="contact">MAPIContact object</param>
 /// <returns>true on success</returns>
 public bool GetNextContact(out MAPIContact contact)
 {
     IntPtr pContact;
     contact = null;
     if (MAPIGetNextContact(pMAPI, out pContact))
     {
         contact = new MAPIContact(pContact);
     }
     return (contact != null);
 }
示例#4
0
 public bool DeleteContact(MAPIContact contact)
 {
     return FolderDeleteContact(pObject, contact.Pointer);
 }
示例#5
0
 /// <summary>
 /// Gets the next contact (assuming this is the Contacts folder)
 /// </summary>
 /// <param name="contact">MAPIContact object</param>
 /// <returns>true on success</returns>
 public bool GetNextContact(out MAPIContact contact)
 {
     IntPtr pContact;
     contact = null;
     if (FolderGetNextContact(pObject, out pContact))
     {
         contact = new MAPIContact(pContact);
     }
     return (contact != null);
 }
示例#6
0
 public bool DeleteContact(MAPIContact contact)
 {
     return(FolderDeleteContact(pObject, contact.Pointer));
 }