Partager via


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("SerializedSecurityContext")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/SendItem", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction:=SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
Public Function SendItem ( _
    SendItem1 As SendItemType _
) As SendItemResponseType
[SoapHeaderAttribute("SerializedSecurityContext")] 
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/SendItem", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare)] 
[SoapHeaderAttribute("ExchangeImpersonation")] 
[SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out)] 
[SoapHeaderAttribute("MailboxCulture")] 
[SoapHeaderAttribute("RequestServerVersionValue")] 
public SendItemResponseType SendItem (
    SendItemType SendItem1
)
[SoapHeaderAttribute(L"SerializedSecurityContext")] 
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/exchange/services/2006/messages/SendItem", Use=SoapBindingUse::Literal, ParameterStyle=SoapParameterStyle::Bare)] 
[SoapHeaderAttribute(L"ExchangeImpersonation")] 
[SoapHeaderAttribute(L"ServerVersionInfoValue", Direction=SoapHeaderDirection::Out)] 
[SoapHeaderAttribute(L"MailboxCulture")] 
[SoapHeaderAttribute(L"RequestServerVersionValue")] 
public:
SendItemResponseType^ SendItem (
    SendItemType^ SendItem1
)
/** @attribute SoapHeaderAttribute("SerializedSecurityContext") */ 
/** @attribute SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/SendItem", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare) */ 
/** @attribute SoapHeaderAttribute("ExchangeImpersonation") */ 
/** @attribute SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out) */ 
/** @attribute SoapHeaderAttribute("MailboxCulture") */ 
/** @attribute SoapHeaderAttribute("RequestServerVersionValue") */ 
public SendItemResponseType SendItem (
    SendItemType SendItem1
)
SoapHeaderAttribute("SerializedSecurityContext") 
SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/SendItem", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Bare) 
SoapHeaderAttribute("ExchangeImpersonation") 
SoapHeaderAttribute("ServerVersionInfoValue", Direction=SoapHeaderDirection.Out) 
SoapHeaderAttribute("MailboxCulture") 
SoapHeaderAttribute("RequestServerVersionValue") 
public function SendItem (
    SendItem1 : SendItemType
) : SendItemResponseType

Parameters

  • SendItem1
    An instance of the SendItemType class that represents the set of items to send.

Return Value

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)