添加新会议后,我总是加载ConflictingMeetingCount属性,以确保会议设置正常(即并发检查),例如:
Dim oAppt As New Appointment(exchangeService)
' ..set properties..
oAppt.Save(SendInvitationsMode.SendOnlyToAll)
oAppt.Load(New PropertySet(AppointmentSchema.ConflictingMeetingCount))
If oAppt.ConflictingMeetingCount > 0 Then
' Whole lotta meetin goin on
End If
我想为与会者和房间资源做同样的事情,但不知道如何找到相关约会,例如添加到会议的房间。例如(从上面继续):
oAppt.Resources.Add("meetingroom1@mahcompany.com")
oAppt.Update(SendInvitationsOrCancellationsMode.SendOnlyToChanged)
Dim oResourceAppt = ** get the appt object for this resource **
If oResourceAppt.ConflictingMeetingCount > 0 Then
' This won't do at all
End If
现在,假设在执行此代码之前,另一位用户在appt中滑入,我们现在在那里有一个冲突的appt。所以我想获得与我刚添加的资源相关的约会对象 ,所以我可以查看。即。这可能吗?
仅仅对该资源的时间段上的FindAppointments是不够的,因为这将只返回2个appt对象,但没有办法(afaik)知道哪个属于这个特定的会议。
有什么想法吗?