2013-04-22 30 views

回答

1

使用這一位代碼結束;

Microsoft.Office.Interop.Outlook.Application outlookApp = new Microsoft.Office.Interop.Outlook.Application(); 
NameSpace ns = outlookApp.GetNamespace("mapi"); 
ns.Logon(Missing.Value, Missing.Value, false, true); 
AddressEntries addressBook = ns.GetGlobalAddressList().AddressEntries; 
AddressEntry testSearch = addressBook["LastName, FirstName"]; 
Console.WriteLine("FreeBusy: {0}", testSearch.GetFreeBusy(DateTime.Now, 30, true)); 

還是要解析GetFreeBusy字符串轉換成有用的東西,但沒有什麼簡單的,只要我能找到。不知道NameSpace登錄是否必要(在另一段代碼中使用它),但它不會減慢速度或導致任何問題...

1

使用Recipient.FreeBusy或AddressEntry.GetFreeBusy。

相關問題