public static IWorkItemCopyFlags GetWrapper(WorkItemCopyFlags src)
 {
     return(default(IWorkItemCopyFlags));
 }
Example #2
0
        /// <summary>
        /// Creates a copy of this WorkItem instance that is of the specified Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemType.
        /// </summary>
        /// <param name="targetType">The type of the target work item.</param>
        /// <param name="flags">Flags that specify items to copy in addition to fields.</param>
        /// <returns>
        /// A new WorkItem instance of the specified Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemType
        /// that is a copy of this WorkItem instance.
        /// </returns>
        /// <exception cref="System.ArgumentNullException">
        /// Thrown when targetType is null.
        /// </exception>
        public IWorkItem Copy(IWorkItemType targetType, WorkItemCopyFlags flags)
        {
            var type = GetWorkItemType(targetType);

            return(ExceptionHandlingDynamicProxyFactory.Create <IWorkItem>(new WorkItemProxy(_item.Copy(type, (Tfs.WorkItemCopyFlags)flags))));
        }