- Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathInstanceDataCollectionCollection.xml
361 lines (329 loc) · 26.5 KB
/
InstanceDataCollectionCollection.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<TypeName="InstanceDataCollectionCollection"FullName="System.Diagnostics.InstanceDataCollectionCollection">
<TypeSignatureLanguage="C#"Value="public class InstanceDataCollectionCollection : System.Collections.DictionaryBase" />
<TypeSignatureLanguage="ILAsm"Value=".class public auto ansi beforefieldinit InstanceDataCollectionCollection extends System.Collections.DictionaryBase" />
<TypeSignatureLanguage="DocId"Value="T:System.Diagnostics.InstanceDataCollectionCollection" />
<TypeSignatureLanguage="VB.NET"Value="Public Class InstanceDataCollectionCollection
Inherits DictionaryBase" />
<TypeSignatureLanguage="F#"Value="type InstanceDataCollectionCollection = class
 inherit DictionaryBase" />
<TypeSignatureLanguage="C++ CLI"Value="public ref class InstanceDataCollectionCollection : System::Collections::DictionaryBase" />
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwardingFrom="System.Diagnostics.PerformanceCounter"FromVersion="10.0.0.0"To="System"ToVersion="4.0.0.0"FrameworkAlternate="netframework-4.6.2-pp" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Collections.DictionaryBase</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides a strongly typed collection of <seecref="T:System.Diagnostics.InstanceDataCollection" /> objects.</summary>
<remarks>
<formattype="text/markdown"><![CDATA[
## Remarks
The <xref:System.Diagnostics.InstanceDataCollectionCollection> class represents the collection returned from the <xref:System.Diagnostics.PerformanceCounterCategory.ReadCategory%2A> method. This collection contains all the counter and instance data. The collection contains an <xref:System.Diagnostics.InstanceDataCollection> object for each counter. Each <xref:System.Diagnostics.InstanceDataCollection> object contains the performance data for all counters for that instance. Thus, the data is indexed by counter name and then by instance name.
## Examples
The following code example displays the instance data for a particular <xref:System.Diagnostics.PerformanceCounterCategory> on the local computer. It first displays a numbered list of <xref:System.Diagnostics.PerformanceCounterCategory> names. After the user enters the number of one of the categories, the example gets the <xref:System.Diagnostics.InstanceDataCollectionCollection> for that <xref:System.Diagnostics.PerformanceCounterCategory>. It then converts the collection returned by the <xref:System.Diagnostics.InstanceDataCollectionCollection.Values%2A> property to an array of <xref:System.Diagnostics.InstanceDataCollection> objects. The example displays the instance data associated with each <xref:System.Diagnostics.InstanceData> of each <xref:System.Diagnostics.InstanceDataCollection>.
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/InstanceDataCollection/Overview/instdatakeysvalues.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Diagnostics.InstanceData.KeysValues/VB/instdatakeysvalues.vb" id="Snippet1":::
]]></format>
</remarks>
<altmembercref="T:System.Diagnostics.InstanceDataCollection" />
<altmembercref="T:System.Diagnostics.InstanceData" />
<altmembercref="T:System.Diagnostics.CounterSample" />
</Docs>
<Members>
<MemberMemberName=".ctor">
<MemberSignatureLanguage="C#"Value="public InstanceDataCollectionCollection ();" />
<MemberSignatureLanguage="ILAsm"Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignatureLanguage="DocId"Value="M:System.Diagnostics.InstanceDataCollectionCollection.#ctor" />
<MemberSignatureLanguage="VB.NET"Value="Public Sub New ()" />
<MemberSignatureLanguage="C++ CLI"Value="public:
 InstanceDataCollectionCollection();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<AttributeFrameworkAlternate="net-10.0-pp;net-8.0-pp;net-9.0-pp;netstandard-2.0-pp;windowsdesktop-10.0;windowsdesktop-6.0;windowsdesktop-7.0;windowsdesktop-8.0;windowsdesktop-9.0">
<AttributeNameLanguage="C#">[System.Obsolete("This constructor has been deprecated. Use System.Diagnostics.PerformanceCounterCategory.ReadCategory() to get an instance of this collection instead.")]</AttributeName>
<AttributeNameLanguage="F#">[<System.Obsolete("This constructor has been deprecated. Use System.Diagnostics.PerformanceCounterCategory.ReadCategory() to get an instance of this collection instead.")>]</AttributeName>
</Attribute>
<AttributeFrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeNameLanguage="C#">[System.Obsolete("This constructor has been deprecated. Please use System.Diagnostics.PerformanceCounterCategory.ReadCategory() to get an instance of this collection instead. http://go.microsoft.com/fwlink/?linkid=14202")]</AttributeName>
<AttributeNameLanguage="F#">[<System.Obsolete("This constructor has been deprecated. Please use System.Diagnostics.PerformanceCounterCategory.ReadCategory() to get an instance of this collection instead. http://go.microsoft.com/fwlink/?linkid=14202")>]</AttributeName>
</Attribute>
<AttributeFrameworkAlternate="netframework-4.0">
<AttributeNameLanguage="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeNameLanguage="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
<AttributeFrameworkAlternate="netframework-4.6.2-pp;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0">
<AttributeNameLanguage="C#">[System.Obsolete("This constructor has been deprecated. Please use System.Diagnostics.PerformanceCounterCategory.ReadCategory() to get an instance of this collection instead. https://go.microsoft.com/fwlink/?linkid=14202")]</AttributeName>
<AttributeNameLanguage="F#">[<System.Obsolete("This constructor has been deprecated. Please use System.Diagnostics.PerformanceCounterCategory.ReadCategory() to get an instance of this collection instead. https://go.microsoft.com/fwlink/?linkid=14202")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <seecref="T:System.Diagnostics.InstanceDataCollectionCollection" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<MemberMemberName="Contains">
<MemberSignatureLanguage="C#"Value="public bool Contains (string counterName);" />
<MemberSignatureLanguage="ILAsm"Value=".method public hidebysig instance bool Contains(string counterName) cil managed" />
<MemberSignatureLanguage="DocId"Value="M:System.Diagnostics.InstanceDataCollectionCollection.Contains(System.String)" />
<MemberSignatureLanguage="VB.NET"Value="Public Function Contains (counterName As String) As Boolean" />
<MemberSignatureLanguage="F#"Value="member this.Contains : string -> bool"Usage="instanceDataCollectionCollection.Contains counterName" />
<MemberSignatureLanguage="C++ CLI"Value="public:
 bool Contains(System::String ^ counterName);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<ParameterName="counterName"Type="System.String" />
</Parameters>
<Docs>
<paramname="counterName">The name of the performance counter.</param>
<summary>Determines whether an instance data collection for the specified counter (identified by one of the indexed <seecref="T:System.Diagnostics.InstanceDataCollection" /> objects) exists in the collection.</summary>
<returns>
<seelangword="true" /> if an instance data collection containing the specified counter exists in the collection; otherwise, <seelangword="false" />.</returns>
<remarks>
<formattype="text/markdown"><![CDATA[
## Remarks
The `counterName` parameter is case-insensitive.
Each <xref:System.Diagnostics.InstanceDataCollection> object in the collection contains the performance data for all counters for an instance. The data is indexed by counter name and then by instance name. <xref:System.Diagnostics.InstanceDataCollectionCollection.Contains%2A> returns `true` if there is an <xref:System.Diagnostics.InstanceDataCollection> object whose associated counter has the name specified by the `counterName` parameter.
## Examples
The following code example accepts a <xref:System.Diagnostics.PerformanceCounter> category name and counter name from the command line. It gets the <xref:System.Diagnostics.InstanceDataCollectionCollection> for the <xref:System.Diagnostics.PerformanceCounterCategory> and then uses the <xref:System.Diagnostics.InstanceDataCollectionCollection.Contains%2A> method to determine if the specified counter exists. If the counter exists, the example gets the associated <xref:System.Diagnostics.InstanceDataCollection> and displays the instance names from the collection.
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/InstanceDataCollectionCollection/Contains/instdatacolcolitermcontains.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Diagnostics.InstanceDataCollectionCollection.ItemContains/VB/instdatacolcolitemcontains.vb" id="Snippet2":::
]]></format>
</remarks>
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="counterName" /> parameter is <seelangword="null" />.</exception>
</Docs>
</Member>
<MemberMemberName="CopyTo">
<MemberSignatureLanguage="C#"Value="public void CopyTo (System.Diagnostics.InstanceDataCollection[] counters, int index);" />
<MemberSignatureLanguage="ILAsm"Value=".method public hidebysig instance void CopyTo(class System.Diagnostics.InstanceDataCollection[] counters, int32 index) cil managed" />
<MemberSignatureLanguage="DocId"Value="M:System.Diagnostics.InstanceDataCollectionCollection.CopyTo(System.Diagnostics.InstanceDataCollection[],System.Int32)" />
<MemberSignatureLanguage="VB.NET"Value="Public Sub CopyTo (counters As InstanceDataCollection(), index As Integer)" />
<MemberSignatureLanguage="F#"Value="override this.CopyTo : System.Diagnostics.InstanceDataCollection[] * int -> unit"Usage="instanceDataCollectionCollection.CopyTo (counters, index)"FrameworkAlternate="net-10.0-pp;net-8.0-pp;net-9.0-pp;netframework-1.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.6.2-pp;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;netstandard-2.0-pp;windowsdesktop-10.0;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-8.0;windowsdesktop-9.0" />
<MemberSignatureLanguage="C++ CLI"Value="public:
 void CopyTo(cli::array <System::Diagnostics::InstanceDataCollection ^> ^ counters, int index);" />
<MemberSignatureLanguage="F#"Value="member this.CopyTo : System.Diagnostics.InstanceDataCollection[] * int -> unit"Usage="instanceDataCollectionCollection.CopyTo (counters, index)"FrameworkAlternate="windowsdesktop-7.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<ParameterName="counters"Type="System.Diagnostics.InstanceDataCollection[]" />
<ParameterName="index"Type="System.Int32" />
</Parameters>
<Docs>
<paramname="counters">An array of <seecref="T:System.Diagnostics.InstanceDataCollection" /> instances (identified by the counters they contain) to add to the collection.</param>
<paramname="index">The location at which to add the new instances.</param>
<summary>Copies an array of <seecref="T:System.Diagnostics.InstanceDataCollection" /> instances to the collection, at the specified index.</summary>
<remarks>
<formattype="text/markdown"><![CDATA[
## Examples
The following code example uses the <xref:System.Diagnostics.InstanceDataCollectionCollection.CopyTo%2A> method to convert an <xref:System.Diagnostics.InstanceDataCollectionCollection> into an array of <xref:System.Diagnostics.InstanceDataCollection> objects. Each element of the <xref:System.Diagnostics.InstanceDataCollection> array is passed to a function for further processing.
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/InstanceData/Overview/instdatacopyto.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Diagnostics.InstanceData.CopyTo/VB/instdatacopyto.vb" id="Snippet5":::
]]></format>
</remarks>
</Docs>
</Member>
<MemberMemberName="Item">
<MemberSignatureLanguage="C#"Value="public System.Diagnostics.InstanceDataCollection this[string counterName] { get; }" />
<MemberSignatureLanguage="ILAsm"Value=".property instance class System.Diagnostics.InstanceDataCollection Item(string)" />
<MemberSignatureLanguage="DocId"Value="P:System.Diagnostics.InstanceDataCollectionCollection.Item(System.String)" />
<MemberSignatureLanguage="VB.NET"Value="Default Public ReadOnly Property Item(counterName As String) As InstanceDataCollection" />
<MemberSignatureLanguage="F#"Value="member this.Item(string) : System.Diagnostics.InstanceDataCollection"Usage="System.Diagnostics.InstanceDataCollectionCollection.Item" />
<MemberSignatureLanguage="C++ CLI"Value="public:
 property System::Diagnostics::InstanceDataCollection ^ default[System::String ^] { System::Diagnostics::InstanceDataCollection ^ get(System::String ^ counterName); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Diagnostics.InstanceDataCollection</ReturnType>
</ReturnValue>
<Parameters>
<ParameterName="counterName"Type="System.String" />
</Parameters>
<Docs>
<paramname="counterName">The name of the performance counter.</param>
<summary>Gets the instance data for the specified counter.</summary>
<value>An <seecref="T:System.Diagnostics.InstanceDataCollection" /> item, by which the <seecref="T:System.Diagnostics.InstanceDataCollectionCollection" /> object is indexed.</value>
<remarks>
<formattype="text/markdown"><![CDATA[
## Remarks
The `counterName` parameter is case-insensitive.
Each <xref:System.Diagnostics.InstanceDataCollection> object in the collection contains the performance data for all counters for an instance. The data is indexed by counter name and then by instance name. The indexer uses the `counterName` parameter to step through the counters associated with this collection of instance data.
## Examples
The following code example accepts a <xref:System.Diagnostics.PerformanceCounter> category name and counter name from the command line. It gets the <xref:System.Diagnostics.InstanceDataCollectionCollection> for the <xref:System.Diagnostics.PerformanceCounterCategory>. Then, if the <xref:System.Diagnostics.PerformanceCounter> exists, the example uses the <xref:System.Diagnostics.InstanceDataCollectionCollection.Item%2A> property (referenced as an indexer) to obtain the associated <xref:System.Diagnostics.InstanceDataCollection> and displays the instance names from the collection.
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/InstanceDataCollectionCollection/Contains/instdatacolcolitermcontains.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Diagnostics.InstanceDataCollectionCollection.ItemContains/VB/instdatacolcolitemcontains.vb" id="Snippet2":::
]]></format>
</remarks>
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="counterName" /> parameter is <seelangword="null" />.</exception>
</Docs>
</Member>
<MemberMemberName="Keys">
<MemberSignatureLanguage="C#"Value="public System.Collections.ICollection Keys { get; }" />
<MemberSignatureLanguage="ILAsm"Value=".property instance class System.Collections.ICollection Keys" />
<MemberSignatureLanguage="DocId"Value="P:System.Diagnostics.InstanceDataCollectionCollection.Keys" />
<MemberSignatureLanguage="VB.NET"Value="Public ReadOnly Property Keys As ICollection" />
<MemberSignatureLanguage="F#"Value="member this.Keys : System.Collections.ICollection"Usage="System.Diagnostics.InstanceDataCollectionCollection.Keys" />
<MemberSignatureLanguage="C++ CLI"Value="public:
 property System::Collections::ICollection ^ Keys { System::Collections::ICollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.ICollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the object and counter registry keys for the objects associated with this instance data collection.</summary>
<value>An <seecref="T:System.Collections.ICollection" /> that represents a set of object-specific registry keys.</value>
<remarks>
<formattype="text/markdown"><![CDATA[
## Remarks
Each software component creates keys for its objects and counters when it is installed and writes counter data while it is executing. You can access this data as you would access any other registry data. However, although you use the registry to collect performance data, the data is not stored in the registry database. Instead, the system collects the data from the appropriate system object managers.
## Examples
The following code example uses the <xref:System.Diagnostics.InstanceDataCollectionCollection.Keys%2A> property of an <xref:System.Diagnostics.InstanceDataCollectionCollection> to return a collection of counter names, which it converts to an array of <xref:System.String>. It generates an array of <xref:System.Diagnostics.InstanceDataCollection> objects using the <xref:System.Diagnostics.InstanceDataCollectionCollection.Values%2A> property. For each element in the array of counter names, it displays the name and calls a function to process the associated <xref:System.Diagnostics.InstanceDataCollection>.
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/InstanceDataCollection/Overview/instdatakeysvalues.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Diagnostics.InstanceData.KeysValues/VB/instdatakeysvalues.vb" id="Snippet4":::
]]></format>
</remarks>
</Docs>
</Member>
<MemberMemberName="Values">
<MemberSignatureLanguage="C#"Value="public System.Collections.ICollection Values { get; }" />
<MemberSignatureLanguage="ILAsm"Value=".property instance class System.Collections.ICollection Values" />
<MemberSignatureLanguage="DocId"Value="P:System.Diagnostics.InstanceDataCollectionCollection.Values" />
<MemberSignatureLanguage="VB.NET"Value="Public ReadOnly Property Values As ICollection" />
<MemberSignatureLanguage="F#"Value="member this.Values : System.Collections.ICollection"Usage="System.Diagnostics.InstanceDataCollectionCollection.Values" />
<MemberSignatureLanguage="C++ CLI"Value="public:
 property System::Collections::ICollection ^ Values { System::Collections::ICollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Diagnostics.PerformanceCounter</AssemblyName>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<AssemblyVersion>10.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Collections.ICollection</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the instance data values that comprise the collection of instances for the counter.</summary>
<value>An <seecref="T:System.Collections.ICollection" /> that represents the counter's instances and their associated data values.</value>
<remarks>
<formattype="text/markdown"><![CDATA[
## Examples
The following code example uses the <xref:System.Diagnostics.InstanceDataCollectionCollection.Values%2A> property of an <xref:System.Diagnostics.InstanceDataCollectionCollection> to return a collection of <xref:System.Diagnostics.InstanceDataCollection> objects, which it converts to an array. It generates an array of counter names using the <xref:System.Diagnostics.InstanceDataCollectionCollection.Keys%2A> property. For each element in the array of <xref:System.Diagnostics.InstanceDataCollection> objects, it displays the associated counter name and calls a function to process the <xref:System.Diagnostics.InstanceDataCollection>.
:::code language="csharp" source="~/snippets/csharp/System.Diagnostics/InstanceDataCollection/Overview/instdatakeysvalues.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_CLR_System/system.Diagnostics.InstanceData.KeysValues/VB/instdatakeysvalues.vb" id="Snippet4":::
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>