コード例 #1
0
        /// <summary>
        ///    <para> Removes a specific <see cref='WorkItem'/> from the 
        ///    <see cref='WorkItemCollection'/> .</para>
        /// </summary>
        /// <param name='value'>The <see cref='WorkItem'/> to remove from the <see cref='WorkItemCollection'/> .</param>
        /// <returns><para>None.</para></returns>
        /// <exception cref='System.ArgumentException'><paramref name='value'/> is not found in the Collection. </exception>
        public void Remove(WorkItem value)
        {
            #region WorkItem Diagnostics

            //if (Tools.Instrumentation.Common.InstrumentationManager.Level==InstrumentationLevel.High)
            //{
            value.AttachNote("Removed from the " + Name + " IQ");
            Trace.WriteLine(value.ToString());
            //}

            #endregion WorkItem Diagnostics

            List.Remove(value);
        }