CreateItemCreateItem

CreateItem元素定义一个请求,以在 Exchange 存储中创建项目。The CreateItem element defines a request to create an item in the Exchange store.

<CreateItem MessageDisposition="" SendMeetingInvitations="">
   <SavedItemFolderId/>
   <Items/>
</CreateItem>

CreateItemTypeCreateItemType

属性和元素Attributes and elements

下面各部分介绍了属性、子元素和父元素。The following sections describe attributes, child elements, and parent elements.

属性Attributes

属性Attribute 说明Description
MessageDispositionMessageDisposition
介绍如何在创建项目后对其进行处理。Describes how the item will be handled after it is created. 电子邮件的属性是必需的。The attribute is required for e-mail messages. 此属性仅适用于电子邮件。This attribute is only applicable to e-mail messages.
SendMeetingInvitationsSendMeetingInvitations
介绍如何在创建会议请求后对其进行处理。Describes how meeting requests are handled after they are created. 此属性是日历项目所必需的。This attribute is required for calendar items.

MessageDisposition 属性MessageDisposition Attribute

Value DescriptionDescription
SaveOnlySaveOnly
邮件项目保存在由SavedItemFolderId元素指定的文件夹中。The message item is saved in the folder that is specified by the SavedItemFolderId element. 稍后可以使用SendItem 操作发送邮件。Messages can be sent later by using the SendItem operation. 响应中返回项目标识符。An item identifier is returned in the response. 不会为除邮件项目之外的任何项目类型返回项目标识符。Item identifiers are not returned for any item types except for message items. 其中包括 response 对象。This includes response objects.
SendOnlySendOnly
项目已发送,但未在 "已发送邮件" 文件夹中保存副本。The item is sent but no copy is saved in the Sent Items folder. 响应中不返回项目标识符。An item identifier is not returned in the response.

注意CreateItem不支持在使用 SendOnly 选项时进行代理访问,因为无法使用此选项指定目标文件夹。NOTE: CreateItem does not support delegate access when the SendOnly option is used because a destination folder cannot be specified with this option. 解决方法是创建项目,获取项目标识符,然后使用 SendItem 操作发送项目。The workaround is to create the item, get the item identifier, and then use the SendItem operation to send the item.
SendAndSaveCopySendAndSaveCopy
将发送项目,并将副本保存在由SavedItemFolderId元素标识的文件夹中。The item is sent and a copy is saved in the folder that is identified by the SavedItemFolderId element. 响应中不返回项目标识符。An item identifier is not returned in the response.

注意:会议请求不会保存到由SavedItemFolderId属性标识的文件夹中。NOTE: Meeting requests are not saved to the folder that is identified by the SavedItemFolderId property. 对于日历,仅可通过SavedItemFolderId属性指定日历项目的保存位置。For calendaring, only the save location for calendar items can be specified by the SavedItemFolderId property. 您不能控制会议请求项目的保存位置。You cannot control where a meeting request item is saved. 只会复制关联的日历项目并将其保存到由SavedItemFolderId属性标识的文件夹中。Only the associated calendar items are copied and saved into the folder that is identified by the SavedItemFolderId property.

SendMeetingInvitations 属性SendMeetingInvitations Attribute

Value DescriptionDescription
SendToNoneSendToNone
如果该项目是会议请求,则会将其保存为日历项目,但不会发送。If the item is a meeting request, it is saved as a calendar item but not sent.
SendOnlyToAllSendOnlyToAll
会议请求将发送给所有与会者,但不会保存在 "已发送邮件" 文件夹中。The meeting request is sent to all attendees but is not saved in the Sent Items folder.
SendToAllAndSaveCopySendToAllAndSaveCopy
将会议请求发送给所有与会者,并将副本保存在由SavedItemFolderId元素标识的文件夹中。The meeting request is sent to all attendees and a copy is saved in the folder that is identified by the SavedItemFolderId element.

子元素Child elements

元素Element 说明Description
SavedItemFolderIdSavedItemFolderId
标识可在其中创建新项目的目标文件夹。Identifies the target folder where a new item can be created. 如果将MessageDisposition属性设置为 SendOnly,则仅发送已创建的邮件。If the MessageDisposition attribute is set to SendOnly, a created message will only be sent. 该邮件不会被放在由SavedItemFolderId元素标识的文件夹中。The message will not be put in the folder that is identified by the SavedItemFolderId element.
项目(NonEmptyArrayOfAllItemsType)Items (NonEmptyArrayOfAllItemsType)
包含要在由SavedItemFolderId元素标识的文件夹中创建的项的数组。Contains an array of items to create in the folder that is identified by the SavedItemFolderId element.

父元素Parent elements

无。None.

说明Remarks

描述此元素的架构位于正在运行 MicrosoftExchange Server 2007 的计算机(已安装客户端访问服务器角色)的 EWS 虚拟目录中。The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server 2007 that has the Client Access server role installed.

元素信息Element information

命名空间Namespace
https://schemas.microsoft.com/exchange/services/2006/messages
架构名称Schema Name
消息架构Messages schema
验证文件Validation File
Messages.xsdMessages.xsd
可以为空Can be Empty
FalseFalse

另请参阅See also