TargetFolderIdType Class

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

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


<SerializableAttribute> _
<GeneratedCodeAttribute("wsdl", "2.0.50727.42")> _
<XmlTypeAttribute(Namespace:="")> _
<DebuggerStepThroughAttribute> _
<DesignerCategoryAttribute("code")> _
Public Class TargetFolderIdType
[GeneratedCodeAttribute("wsdl", "2.0.50727.42")] 
public class TargetFolderIdType
[GeneratedCodeAttribute(L"wsdl", L"2.0.50727.42")] 
public ref class TargetFolderIdType
/** @attribute SerializableAttribute() */ 
/** @attribute GeneratedCodeAttribute("wsdl", "2.0.50727.42") */ 
/** @attribute XmlTypeAttribute(Namespace="") */ 
/** @attribute DebuggerStepThroughAttribute() */ 
/** @attribute DesignerCategoryAttribute("code") */ 
public class TargetFolderIdType
GeneratedCodeAttribute("wsdl", "2.0.50727.42") 
public class TargetFolderIdType


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

Inheritance Hierarchy



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.


Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows 98, Windows 2000, Windows 2000 Server, Windows CE, Windows Longhorn, Windows 98 Second Edition, Pocket PC, Smart Phone, Windows Server 2003, Windows XP Professional with Service Pack 2 (SP2)