The Exchange Web Services (EWS) autogenerated proxy object models that are created by .NET Framework proxy generators are deemphasized and we do not recommend that you use them for new .NET Framework client development. We recommend that you use the EWS Managed API to develop clients that target the .NET Framework. We recommend that you use the EWS Java API to develop clients that target the Java platform. For more information about the EWS Managed API, see Explore the EWS Managed API.
The class represents a request to send a message.
Assembly: EWS (in EWS.dll)
The following code example shows you how to create a SendItem request by using the class.
ExchangeServiceBinding esb = new ExchangeServiceBinding(); esb.Credentials = new NetworkCredential("username", "password", "myDomain"); esb.Url = @"https://myServer.myDomain.com/EWS/Exchange.asmx"; // Create the SendItem request. SendItemType sit = new SendItemType(); sit.ItemIds = new BaseItemIdType; // Create an item ID type and set the message ID and change key. ItemIdType itemId = new ItemIdType(); // Get the ID and change key from the message that was obtained by using FindItem or CreateItem. itemId.Id = "AQAtA="; itemId.ChangeKey = "CQAAAB"; sit.ItemIds = itemId; // Send the message. SendItemResponseType siResponse = esb.SendItem(sit);