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


ExchangeServiceBinding.CreateItem Method

The CreateItem method sends the request to and gets the response from a CreateItem operation.

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

Syntax

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

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

Parameters

Return Value

Type: ExchangeWebServices.CreateItemResponseType
The CreateItem method returns a CreateItemResponseType object that contains the status of the CreateItem operation and in many scenarios, the identifiers of the new items.