This documentation is archived and is not being maintained.
WorkItem.Copy Method (WorkItemType)
Visual Studio 2013
Creates a copy of this WorkItem instance that is of the specified WorkItemType.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Parameters
- targetType
- Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemType
The type of the target work item.
Return Value
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemA new WorkItem instance of the specified WorkItemType that is a copy of this WorkItem instance.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when targetType is null. |
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: