104 lines
4.8 KiB
C#
104 lines
4.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
/// <summary>Provides a strongly typed collection of <see cref="T:System.Diagnostics.ProcessThread" /> objects.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020000EF RID: 239
|
|
public class ProcessThreadCollection : ReadOnlyCollectionBase
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.ProcessThreadCollection" /> class, with no associated <see cref="T:System.Diagnostics.ProcessThread" /> instances.</summary>
|
|
// Token: 0x06000885 RID: 2181 RVA: 0x00016AF0 File Offset: 0x00014CF0
|
|
protected ProcessThreadCollection()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.ProcessThreadCollection" /> class, using the specified array of <see cref="T:System.Diagnostics.ProcessThread" /> instances.</summary>
|
|
/// <param name="processThreads">An array of <see cref="T:System.Diagnostics.ProcessThread" /> instances with which to initialize this <see cref="T:System.Diagnostics.ProcessThreadCollection" /> instance. </param>
|
|
// Token: 0x06000886 RID: 2182 RVA: 0x00016AF8 File Offset: 0x00014CF8
|
|
public ProcessThreadCollection(ProcessThread[] processThreads)
|
|
{
|
|
base.InnerList.AddRange(processThreads);
|
|
}
|
|
|
|
// Token: 0x06000887 RID: 2183 RVA: 0x00016B0C File Offset: 0x00014D0C
|
|
internal static ProcessThreadCollection GetEmpty()
|
|
{
|
|
return new ProcessThreadCollection();
|
|
}
|
|
|
|
/// <summary>Gets an index for iterating over the set of process threads.</summary>
|
|
/// <returns>A <see cref="T:System.Diagnostics.ProcessThread" /> that indexes the threads in the collection.</returns>
|
|
/// <param name="index">The zero-based index value of the thread in the collection. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x17000242 RID: 578
|
|
public ProcessThread this[int index]
|
|
{
|
|
get
|
|
{
|
|
return (ProcessThread)base.InnerList[index];
|
|
}
|
|
}
|
|
|
|
/// <summary>Appends a process thread to the collection.</summary>
|
|
/// <returns>The zero-based index of the thread in the collection.</returns>
|
|
/// <param name="thread">The thread to add to the collection. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000889 RID: 2185 RVA: 0x00016B28 File Offset: 0x00014D28
|
|
public int Add(ProcessThread thread)
|
|
{
|
|
return base.InnerList.Add(thread);
|
|
}
|
|
|
|
/// <summary>Determines whether the specified process thread exists in the collection.</summary>
|
|
/// <returns>true if the thread exists in the collection; otherwise, false.</returns>
|
|
/// <param name="thread">A <see cref="T:System.Diagnostics.ProcessThread" /> instance that indicates the thread to find in this collection. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0600088A RID: 2186 RVA: 0x00016B38 File Offset: 0x00014D38
|
|
public bool Contains(ProcessThread thread)
|
|
{
|
|
return base.InnerList.Contains(thread);
|
|
}
|
|
|
|
/// <summary>Copies an array of <see cref="T:System.Diagnostics.ProcessThread" /> instances to the collection, at the specified index.</summary>
|
|
/// <param name="array">An array of <see cref="T:System.Diagnostics.ProcessThread" /> instances to add to the collection. </param>
|
|
/// <param name="index">The location at which to add the new instances. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0600088B RID: 2187 RVA: 0x00016B48 File Offset: 0x00014D48
|
|
public void CopyTo(ProcessThread[] array, int index)
|
|
{
|
|
base.InnerList.CopyTo(array, index);
|
|
}
|
|
|
|
/// <summary>Provides the location of a specified thread within the collection.</summary>
|
|
/// <returns>The zero-based index that defines the location of the thread within the <see cref="T:System.Diagnostics.ProcessThreadCollection" />.</returns>
|
|
/// <param name="thread">The <see cref="T:System.Diagnostics.ProcessThread" /> whose index is retrieved. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0600088C RID: 2188 RVA: 0x00016B58 File Offset: 0x00014D58
|
|
public int IndexOf(ProcessThread thread)
|
|
{
|
|
return base.InnerList.IndexOf(thread);
|
|
}
|
|
|
|
/// <summary>Inserts a process thread at the specified location in the collection.</summary>
|
|
/// <param name="index">The zero-based index indicating the location at which to insert the thread. </param>
|
|
/// <param name="thread">The thread to insert into the collection. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0600088D RID: 2189 RVA: 0x00016B68 File Offset: 0x00014D68
|
|
public void Insert(int index, ProcessThread thread)
|
|
{
|
|
base.InnerList.Insert(index, thread);
|
|
}
|
|
|
|
/// <summary>Deletes a process thread from the collection.</summary>
|
|
/// <param name="thread">The thread to remove from the collection. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0600088E RID: 2190 RVA: 0x00016B78 File Offset: 0x00014D78
|
|
public void Remove(ProcessThread thread)
|
|
{
|
|
base.InnerList.Remove(thread);
|
|
}
|
|
}
|
|
}
|