Merge pull request #3626 from lateralusX/jlorenss/win-api-family-support-eglib
[mono.git] / mcs / class / referencesource / System / services / monitoring / system / diagnosticts / ProcessModuleCollection.cs
1 //------------------------------------------------------------------------------
2 // <copyright file="ProcessModuleCollection.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>                                                                
5 //------------------------------------------------------------------------------
6
7 namespace System.Diagnostics {
8     using System;
9     using System.Collections;
10     using System.Diagnostics;
11     
12     /// <devdoc>
13     ///    <para>[To be supplied.]</para>
14     /// </devdoc>
15     public class ProcessModuleCollection : ReadOnlyCollectionBase {
16         /// <devdoc>
17         ///    <para>[To be supplied.]</para>
18         /// </devdoc>
19         protected ProcessModuleCollection() {
20         }
21         
22         /// <devdoc>
23         ///    <para>[To be supplied.]</para>
24         /// </devdoc>
25         public ProcessModuleCollection(ProcessModule[] processModules) {
26             InnerList.AddRange(processModules);
27         }
28
29         /// <devdoc>
30         ///    <para>[To be supplied.]</para>
31         /// </devdoc>
32         public ProcessModule this[int index] {
33             get { return (ProcessModule)InnerList[index]; }
34         }
35         
36         /// <devdoc>
37         ///    <para>[To be supplied.]</para>
38         /// </devdoc>
39         public int IndexOf(ProcessModule module) {
40             return InnerList.IndexOf(module);
41         }
42         
43         /// <devdoc>
44         ///    <para>[To be supplied.]</para>
45         /// </devdoc>
46         public bool Contains(ProcessModule module) {
47             return InnerList.Contains(module);
48         }
49         
50         /// <devdoc>
51         ///    <para>[To be supplied.]</para>
52         /// </devdoc>
53         public void CopyTo(ProcessModule[] array, int index) {
54             InnerList.CopyTo(array, index);
55         }
56
57 #if MOBILE
58         [Obsolete ("This API is no longer available", true)]
59         public int Capacity {
60             get {
61                 throw new NotSupportedException ();
62             }
63             set {
64                 throw new NotSupportedException ();
65             }
66         }
67
68         [Obsolete ("This API is no longer available", true)]
69         public void Add (ProcessModule item)
70         {
71             throw new NotSupportedException ();
72         }
73
74         [Obsolete ("This API is no longer available", true)]
75         public void AddRange (System.Collections.Generic.IEnumerable<ProcessModule> collection)
76         {
77             throw new NotSupportedException ();
78         }
79
80         [Obsolete ("This API is no longer available", true)]
81         public System.Collections.ObjectModel.ReadOnlyCollection<ProcessModule> AsReadOnly()
82         {
83             throw new NotSupportedException ();
84         }
85
86         [Obsolete ("This API is no longer available", true)]
87         public int BinarySearch(int index, int count, ProcessModule item, System.Collections.Generic.IComparer<ProcessModule> comparer)
88         {
89             throw new NotSupportedException ();
90         }
91
92         [Obsolete ("This API is no longer available", true)]
93         public int BinarySearch(ProcessModule item)
94         {
95             throw new NotSupportedException ();
96         }
97
98         [Obsolete ("This API is no longer available", true)]
99         public int BinarySearch(ProcessModule item, System.Collections.Generic.IComparer<ProcessModule> comparer)
100         {
101             throw new NotSupportedException ();
102         }
103
104         [Obsolete ("This API is no longer available", true)]
105         public void Clear()
106         {
107             throw new NotSupportedException ();
108         }
109
110         [Obsolete ("This API is no longer available", true)]
111         public System.Collections.Generic.List<TOutput> ConvertAll<TOutput>(Converter<ProcessModule,TOutput> converter)
112         {
113             throw new NotSupportedException ();
114         }
115
116         [Obsolete ("This API is no longer available", true)]
117         public void CopyTo(ProcessModule[] array)
118         {
119             throw new NotSupportedException ();
120         }
121
122         [Obsolete ("This API is no longer available", true)]
123         public void CopyTo(int index, ProcessModule[] array, int arrayIndex, int count)
124         {
125             throw new NotSupportedException ();
126         }
127
128         [Obsolete ("This API is no longer available", true)]
129         public bool Exists(Predicate<ProcessModule> match)
130         {
131             throw new NotSupportedException ();
132         }
133
134         [Obsolete ("This API is no longer available", true)]
135         public ProcessModule Find(Predicate<ProcessModule> match)
136         {
137             throw new NotSupportedException ();
138         }
139
140         [Obsolete ("This API is no longer available", true)]
141         public System.Collections.Generic.List<ProcessModule> FindAll(Predicate<ProcessModule> match)
142         {
143             throw new NotSupportedException ();
144         }
145
146         [Obsolete ("This API is no longer available", true)]
147         public int FindIndex(Predicate<ProcessModule> match)
148         {
149             throw new NotSupportedException ();
150         }
151
152         [Obsolete ("This API is no longer available", true)]
153         public int FindIndex(int startIndex, Predicate<ProcessModule> match)
154         {
155             throw new NotSupportedException ();
156         }
157
158         [Obsolete ("This API is no longer available", true)]
159         public int FindIndex(int startIndex, int count, Predicate<ProcessModule> match)
160         {
161             throw new NotSupportedException ();
162         }
163
164         [Obsolete ("This API is no longer available", true)]
165         public ProcessModule FindLast(Predicate<ProcessModule> match)
166         {
167             throw new NotSupportedException ();
168         }
169
170         [Obsolete ("This API is no longer available", true)]
171         public int FindLastIndex(Predicate<ProcessModule> match)
172         {
173             throw new NotSupportedException ();
174         }
175
176         [Obsolete ("This API is no longer available", true)]
177         public int FindLastIndex(int startIndex, Predicate<ProcessModule> match)
178         {
179             throw new NotSupportedException ();
180         }
181
182         [Obsolete ("This API is no longer available", true)]
183         public int FindLastIndex(int startIndex, int count, Predicate<ProcessModule> match)
184         {
185             throw new NotSupportedException ();
186         }
187
188         [Obsolete ("This API is no longer available", true)]
189         public void ForEach(Action<ProcessModule> action)
190         {
191             throw new NotSupportedException ();
192         }
193
194         [Obsolete ("This API is no longer available", true)]
195         public System.Collections.Generic.List<ProcessModule> GetRange(int index, int count)
196         {
197             throw new NotSupportedException ();
198         }
199
200         [Obsolete ("This API is no longer available", true)]
201         public int IndexOf(ProcessModule item, int index)
202         {
203             throw new NotSupportedException ();
204         }
205
206         [Obsolete ("This API is no longer available", true)]
207         public int IndexOf(ProcessModule item, int index, int count)
208         {
209             throw new NotSupportedException ();
210         }
211
212         [Obsolete ("This API is no longer available", true)]
213         public void Insert(int index, ProcessModule item)
214         {
215             throw new NotSupportedException ();
216         }
217
218         [Obsolete ("This API is no longer available", true)]
219         public void InsertRange(int index, System.Collections.Generic.IEnumerable<ProcessModule> collection)
220         {
221             throw new NotSupportedException ();
222         }
223
224         [Obsolete ("This API is no longer available", true)]
225         public int LastIndexOf(ProcessModule item)
226         {
227             throw new NotSupportedException ();
228         }
229
230         [Obsolete ("This API is no longer available", true)]
231         public int LastIndexOf(ProcessModule item, int index)
232         {
233             throw new NotSupportedException ();
234         }
235
236         [Obsolete ("This API is no longer available", true)]
237         public int LastIndexOf(ProcessModule item, int index, int count)
238         {
239             throw new NotSupportedException ();
240         }
241
242         [Obsolete ("This API is no longer available", true)]
243         public bool Remove(ProcessModule item)
244         {
245             throw new NotSupportedException ();
246         }
247
248         [Obsolete ("This API is no longer available", true)]
249         public int RemoveAll(Predicate<ProcessModule> match)
250         {
251             throw new NotSupportedException ();
252         }
253
254         [Obsolete ("This API is no longer available", true)]
255         public void RemoveAt(int index)
256         {
257             throw new NotSupportedException ();
258         }
259
260         [Obsolete ("This API is no longer available", true)]
261         public void RemoveRange(int index, int count)
262         {
263             throw new NotSupportedException ();
264         }
265
266         [Obsolete ("This API is no longer available", true)]
267         public void Reverse()
268         {
269             throw new NotSupportedException ();
270         }
271
272         [Obsolete ("This API is no longer available", true)]
273         public void Reverse(int index, int count)
274         {
275             throw new NotSupportedException ();
276         }
277
278         [Obsolete ("This API is no longer available", true)]
279         public void Sort()
280         {
281             throw new NotSupportedException ();
282         }
283
284         [Obsolete ("This API is no longer available", true)]
285         public void Sort(System.Collections.Generic.IComparer<ProcessModule> comparer)
286         {
287             throw new NotSupportedException ();
288         }
289
290         [Obsolete ("This API is no longer available", true)]
291         public void Sort(int index, int count, System.Collections.Generic.IComparer<ProcessModule> comparer)
292         {
293             throw new NotSupportedException ();
294         }
295
296         [Obsolete ("This API is no longer available", true)]
297         public void Sort(Comparison<ProcessModule> comparison)
298         {
299             throw new NotSupportedException ();
300         }
301
302         [Obsolete ("This API is no longer available", true)]
303         public ProcessModule[] ToArray()
304         {
305             throw new NotSupportedException ();
306         }
307
308         [Obsolete ("This API is no longer available", true)]
309         public void TrimExcess()
310         {
311             throw new NotSupportedException ();
312         }
313
314         [Obsolete ("This API is no longer available", true)]
315         public bool TrueForAll(Predicate<ProcessModule> match)
316         {
317             throw new NotSupportedException ();
318         }
319 #endif
320     }
321 }
322