Beispiel #1
0
		/// <remarks/>
		public void UpdateItemAsync(UpdateItemType UpdateItem1, object userState)
		{
			if ((UpdateItemOperationCompleted == null))
			{
				UpdateItemOperationCompleted = new SendOrPostCallback(OnUpdateItemOperationCompleted);
			}
			InvokeAsync("UpdateItem", new object[]
			                          	{
			                          		UpdateItem1
			                          	}, UpdateItemOperationCompleted, userState);
		}
Beispiel #2
0
		/// <remarks/>
		public IAsyncResult BeginUpdateItem(UpdateItemType UpdateItem1, AsyncCallback callback, object asyncState)
		{
			return BeginInvoke("UpdateItem", new object[]
			                                 	{
			                                 		UpdateItem1
			                                 	}, callback, asyncState);
		}
Beispiel #3
0
		/// <remarks/>
		public void UpdateItemAsync(UpdateItemType UpdateItem1)
		{
			UpdateItemAsync(UpdateItem1, null);
		}
		private void UpdateCalendarItem(ItemChangeType[] changes)
		{
			UpdateItemType updateItemRequest = new UpdateItemType();
			updateItemRequest.ConflictResolution = ConflictResolutionType.AlwaysOverwrite;
			updateItemRequest.ItemChanges = changes;
			updateItemRequest.SendMeetingInvitationsOrCancellations = CalendarItemUpdateOperationType.SendToNone;
			updateItemRequest.SendMeetingInvitationsOrCancellationsSpecified = true;

			UpdateItemResponseType response = Service.UpdateItem(updateItemRequest);
			ResponseMessageType responseMessage = response.ResponseMessages.Items[0];

			if (responseMessage.ResponseCode != ResponseCodeType.NoError)
			{
				throw new Exception("UpdateItem failed with response code " + responseMessage.ResponseCode);
			}
		}