Edit

Share via


TargetFolderIdType Class

Definition

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

public ref class TargetFolderIdType
public class TargetFolderIdType
Public Class TargetFolderIdType
Inheritance
TargetFolderIdType
Derived

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.<span class="label">ToFolderId</span> = new <span class="label">TargetFolderIdType</span>();
request.<span class="label">ToFolderId</span>.Item = destFolder;

Remarks

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

Constructors

TargetFolderIdType()

The TargetFolderIdType constructor initializes a new instance of the TargetFolderIdType class.

Properties

Item

The Item property gets or sets the identifier of the target folder. Set this property with either a FolderIdType or DistinguishedFolderIdType object. This property is required. This is a read/write property.

Applies to