編輯

共用方式為


ParentFolderId (TargetFolderIdType)

The ParentFolderId element identifies the folder in which a new folder is created or the folder to search for the FindConversation operation.

<ParentFolderId>
   <DistinguishedFolderId/>
</ParentFolderId>
<ParentFolderId>
   <FolderId/> 
</ParentFolderId>

TargetFolderIdType

Attributes and elements

The ParentFolderId element contains two child elements. The child elements are mutually exclusive in the schema.

Attributes

None.

Child elements

Element Description
FolderId
Contains the required identifier and the optional change key of a folder in which a new folder is created or the folder that is searched for the FindConversation operation. Using this element excludes the use of the DistinguishedFolderId element.
DistinguishedFolderId
Identifies default Microsoft Exchange Server 2007 folders. Using this element excludes the use of the FolderId element.

Parent elements

Element Description
CreateFolder
Defines a request to create a folder in the Exchange database.
The following is the XPath expression to this element: /CreateFolder
FindConversation
Defines a request to find conversations in a mailbox.

Text value

None.

Remarks

The two child elements are used to define the folder that will contain the new folder. You must select either the FolderId or the DistinguishedFolderId element to identify the parent folder of the new folder. You cannot use both elements at the same time. This element is required to create folders.

The ParentFolderId element describes the location of existing items and folders.

The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.

Element information

Name Value
Namespace
http://schemas.microsoft.com/exchange/services/2006/messages
Schema Name
Message schema
Validation File
Messages.xsd
Can be Empty
False

See also