ExchangeServiceBinding.CreateItem Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Sends the request and gets the response to a CreateItem operation.
Namespace: Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007
Assembly: Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (in Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)
Syntax
'Declaration
<SoapHeaderAttribute("SerializedSecurityContext")> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CreateItem", Use := SoapBindingUse.Literal, _
ParameterStyle := SoapParameterStyle.Bare)> _
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("SerializedSecurityContext")]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("MailboxCulture")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/CreateItem", Use = SoapBindingUse.Literal,
ParameterStyle = SoapParameterStyle.Bare)]
public CreateItemResponseType CreateItem(
CreateItemType CreateItem1
)
[SoapHeaderAttribute(L"SerializedSecurityContext")]
[SoapHeaderAttribute(L"ServerVersionInfoValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"MailboxCulture")]
[SoapHeaderAttribute(L"ExchangeImpersonation")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/exchange/services/2006/messages/CreateItem", Use = SoapBindingUse::Literal,
ParameterStyle = SoapParameterStyle::Bare)]
public:
CreateItemResponseType^ CreateItem(
CreateItemType^ CreateItem1
)
public function CreateItem(
CreateItem1 : CreateItemType
) : CreateItemResponseType
Parameters
CreateItem1
Type: Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007.CreateItemTypeAn instance of the CreateItemType class that represents a set of items to create.
Return Value
Type: Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007.CreateItemResponseType
An object that contains the status of the CreateItem operation, and, in many scenarios, the identifiers of the new items.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Platforms
Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Compact Framework
Supported in: 3.5
See Also
Reference
ExchangeServiceBinding Members
Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007 Namespace