Поделиться через


ExchangeServiceBinding.SendItem Method

The SendItem method sends the request to and returns the response from a SendItem operation.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
<SoapHeaderAttribute("RequestServerVersionValue")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/SendItem", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
Public Function SendItem ( _
    SendItem1 As SendItemType _
) As SendItemResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim SendItem1 As SendItemType
Dim returnValue As SendItemResponseType

returnValue = instance.SendItem(SendItem1)
[SoapHeaderAttribute("RequestServerVersionValue")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("MailboxCulture")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/SendItem", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
public SendItemResponseType SendItem(
    SendItemType SendItem1
)

Parameters

Return Value

Type: ExchangeWebServices.SendItemResponseType
The SendItem method returns a SendItemResponseType object that contains the status of the SendItem operation.