标题: 求救!关于c# find microsoft outlook contact [打印本页] 作者: kenji0523 时间: 2010-12-22 03:16 AM 标题: 求救!关于c# find microsoft outlook contact string Filter = string.Format("[FullName]='{0}'", PFullName);
OutlookInterop.ContactItem contact = subFolder2.Items.Find(string.Format(Filter)) as OutlookInterop.ContactItem;
这个行不通,还有别的方法吗?还是我写错了?作者: shippo 时间: 2010-12-22 10:37 PM
Google MSDN
using System;
using System.Reflection; // to use Missing.Value
//TO DO: If you use the Microsoft Outlook 11.0 Object Library, uncomment the following line.
//using Outlook = Microsoft.Office.Interop.Outlook;
namespace ReadContact
{
public class Class1
{
public static int Main(string[] args)
{
try
{
// Create the Outlook application.
Outlook.Application oApp = new Outlook.Application();
// Get the NameSpace information.
Outlook.NameSpace oNS = oApp.GetNamespace("mapi");
// Log on by using a dialog box to choose the profile.