Share via


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

Parameters

  • CreateItem1
    An instance of the CreateItemType class that represents a set of items to create.

Return Value

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.

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)