69 lines
3.4 KiB
C#
69 lines
3.4 KiB
C#
using System;
|
|
using System.Collections;
|
|
|
|
namespace System.Diagnostics
|
|
{
|
|
/// <summary>Provides a strongly typed collection of <see cref="T:System.Diagnostics.ProcessModule" /> objects.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020000EB RID: 235
|
|
public class ProcessModuleCollection : ReadOnlyCollectionBase
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.ProcessModuleCollection" /> class, with no associated <see cref="T:System.Diagnostics.ProcessModule" /> instances.</summary>
|
|
// Token: 0x06000842 RID: 2114 RVA: 0x00016680 File Offset: 0x00014880
|
|
protected ProcessModuleCollection()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Diagnostics.ProcessModuleCollection" /> class, using the specified array of <see cref="T:System.Diagnostics.ProcessModule" /> instances.</summary>
|
|
/// <param name="processModules">An array of <see cref="T:System.Diagnostics.ProcessModule" /> instances with which to initialize this <see cref="T:System.Diagnostics.ProcessModuleCollection" /> instance. </param>
|
|
// Token: 0x06000843 RID: 2115 RVA: 0x00016688 File Offset: 0x00014888
|
|
public ProcessModuleCollection(ProcessModule[] processModules)
|
|
{
|
|
base.InnerList.AddRange(processModules);
|
|
}
|
|
|
|
/// <summary>Gets an index for iterating over the set of process modules.</summary>
|
|
/// <returns>A <see cref="T:System.Diagnostics.ProcessModule" /> that indexes the modules in the collection </returns>
|
|
/// <param name="index">The zero-based index value of the module in the collection. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x1700021E RID: 542
|
|
public ProcessModule this[int index]
|
|
{
|
|
get
|
|
{
|
|
return (ProcessModule)base.InnerList[index];
|
|
}
|
|
}
|
|
|
|
/// <summary>Determines whether the specified process module exists in the collection.</summary>
|
|
/// <returns>true if the module exists in the collection; otherwise, false.</returns>
|
|
/// <param name="module">A <see cref="T:System.Diagnostics.ProcessModule" /> instance that indicates the module to find in this collection. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000845 RID: 2117 RVA: 0x000166B0 File Offset: 0x000148B0
|
|
public bool Contains(ProcessModule module)
|
|
{
|
|
return base.InnerList.Contains(module);
|
|
}
|
|
|
|
/// <summary>Copies an array of <see cref="T:System.Diagnostics.ProcessModule" /> instances to the collection, at the specified index.</summary>
|
|
/// <param name="array">An array of <see cref="T:System.Diagnostics.ProcessModule" /> instances to add to the collection. </param>
|
|
/// <param name="index">The location at which to add the new instances. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000846 RID: 2118 RVA: 0x000166C0 File Offset: 0x000148C0
|
|
public void CopyTo(ProcessModule[] array, int index)
|
|
{
|
|
base.InnerList.CopyTo(array, index);
|
|
}
|
|
|
|
/// <summary>Provides the location of a specified module within the collection.</summary>
|
|
/// <returns>The zero-based index that defines the location of the module within the <see cref="T:System.Diagnostics.ProcessModuleCollection" />.</returns>
|
|
/// <param name="module">The <see cref="T:System.Diagnostics.ProcessModule" /> whose index is retrieved. </param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06000847 RID: 2119 RVA: 0x000166D0 File Offset: 0x000148D0
|
|
public int IndexOf(ProcessModule module)
|
|
{
|
|
return base.InnerList.IndexOf(module);
|
|
}
|
|
}
|
|
}
|