Exchange Managed Webservices と Exchange Online ( Office 365 )を使用した経験のある人はいますか?
通常の Exchange とオンラインの間に重大な変更はありますか? これには通常の API を使用できますか?
ヒントはありますか?
Exchange Managed Webservices と Exchange Online ( Office 365 )を使用した経験のある人はいますか?
通常の Exchange とオンラインの間に重大な変更はありますか? これには通常の API を使用できますか?
ヒントはありますか?
まず、O365 が現在 Exchange Server 2010 Service Pack 1 を実行していることを知っておくことが重要です。Exchange マネージ API を使用するときに指定する必要があります。
Exchange の自動検出は集中型の Exchange クラスターによって行われるため、ここでリダイレクトを有効にする必要があります。
var service = new ExchangeService(ExchangeVersion.Exchange2010_SP1)
{
Credentials = new WebCredentials("MyO365UserId", "Password")
};
service.AutodiscoverUrl("foo@bar.onmicrosoft.com", delegate { return true; });
var allContactsFromO365 = service
.FindItems(WellKnownFolderName.Contacts, new ItemView(99));
foreach (var contact in allContactsFromO365
.Where(item => item as Contact != null)
.OfType<Contact>())
{
Console.WriteLine(contact.DisplayName);
}
それが少し役立つことを願っています。
ご覧のとおり、通常のマネージ API コードです。
楽しんで