2017-08-28 2 views
1

Outlookから会議を作成し、会議を非公開に設定します。しかし、Exchange Server API(EWS Managed API)を使用する場合、その情報を取得することはできません。会議は常に「非公開」ではなく「通常」に設定されます。 Exchange Serverが会議の感性プロパティを読み取ることを妨げるような設定はありますか?またはその設定を取得するためのAPIの要件はありますか?ここ は、サンプルコードは次のとおりです。EWS APIを使用して会議の機密データを取得する

DateTime startDate = DateTime.Now.AddDays(-1); 
DateTime endDate = DateTime.Now.AddDays(1); 
const int NUM_APPTS = 15; 

// Initialize the calendar folder object with only the folder ID. 
FolderId CalendarFolderIdVal = new FolderId(WellKnownFolderName.Calendar, "[email protected]"); 
CalendarFolder calendar = CalendarFolder.Bind(service, CalendarFolderIdVal, new PropertySet()); 

// Set the start and end time and number of appointments to retrieve. 
CalendarView cView = new CalendarView(startDate, endDate, NUM_APPTS); 

// Limit the properties returned to the appointment's subject, start time, and end time. 
cView.PropertySet = new PropertySet(AppointmentSchema.Subject, AppointmentSchema.Start, AppointmentSchema.End,AppointmentSchema.Sensitivity); 

// Retrieve a collection of appointments by using the calendar view. 
FindItemsResults<Appointment> appointments = calendar.FindAppointments(cView); 

の予定をループする際、でも会議がOutlookでプライベートで、それは常に「通常」と読みます。

答えて

0

たぶんこれが起こっているので、メールボックスにデフォルト設定のあなたが見るhttps://technet.microsoft.com/en-us/library/dd335046(v=exchg.160).aspx

から予定を取得しようとしているは、RemovePrivatePropertyパラメータは、受信した会議出席依頼のプライベートフラグをクリアするかどうかを指定します。このパラメータの有効な入力は$ trueまたは$ falseです。デフォルト値は$ trueです。 デフォルトでは、受信会議出席依頼のプライベートフラグはクリアされます。オーガナイザが元の要求で送信したプライベートフラグが指定どおりに保持されるようにするには、このパラメータを$ falseに設定します。

+0

はい、「RemovePrivateProperty」設定で問題が解決されました。ありがとう!グレン –

関連する問題