コード例 #1
0
        public static void ThrowIfMeetingResponseInvalid(MeetingMessage meetingMessage)
        {
            MeetingUtilities.ThrowIfWebParts();
            MeetingRequest meetingRequest = meetingMessage as MeetingRequest;

            if (meetingRequest != null && meetingRequest.IsMailboxOwnerTheSender())
            {
                throw new OwaOperationNotSupportedException(LocalizedStrings.GetNonEncoded(679811893));
            }
            MeetingUtilities.ThrowIfInArchiveMailbox(meetingMessage);
        }
コード例 #2
0
 public static void ThrowIfMeetingResponseInvalid(CalendarItemBase calendarItemBase)
 {
     MeetingUtilities.ThrowIfWebParts();
     if (calendarItemBase.IsOrganizer())
     {
         throw new OwaOperationNotSupportedException(LocalizedStrings.GetNonEncoded(679811893));
     }
     if (calendarItemBase.IsCancelled)
     {
         throw new OwaOperationNotSupportedException("Cannot respond to a cancelled meeting.");
     }
     MeetingUtilities.ThrowIfInArchiveMailbox(calendarItemBase);
 }