Partager via


TargetFolderIdType Class

The TargetFolderIdType class represents a target folder for operations that create, save, copy, move, or synchronize items or folders.

Inheritance Hierarchy

System.Object
  ExchangeWebServices.TargetFolderIdType
    ExchangeWebServices.UserConfigurationNameType

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class TargetFolderIdType
'Usage
Dim instance As TargetFolderIdType
[SerializableAttribute]
public class TargetFolderIdType

Remarks

This class is a container for either a FolderIdType or DistinguishedFolderIdType object. Either of these types is set on the Item property.

Examples

The following code example shows the DistinguishedFolderIdType being set on the Item property.

// Identify the destination folder.
DistinguishedFolderIdType destFolder = new DistinguishedFolderIdType();
destFolder.Id = DistinguishedFolderIdNameType.inbox;

// Form the copy item request.
CopyItemType request = new CopyItemType();
request.ItemIds = items;
request.ToFolderId = new TargetFolderIdType();
request.ToFolderId.Item = destFolder;

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.