﻿<?xml version="1.0" encoding="utf-8"?><Type Name="CaptureCollection" FullName="System.Text.RegularExpressions.CaptureCollection"><TypeSignature Language="C#" Maintainer="auto" Value="public class CaptureCollection : System.Collections.ICollection" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit CaptureCollection extends System.Object implements class System.Collections.ICollection, class System.Collections.IEnumerable" /><AssemblyInfo><AssemblyName>System</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.3300.0</AssemblyVersion><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces><Interface><InterfaceName>System.Collections.ICollection</InterfaceName></Interface></Interfaces><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The collection is immutable (read-only) and has no public constructor. The <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> object contains one or more <see cref="T:System.Text.RegularExpressions.Capture" /> objects. </para><para>Instances of the <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> class are returned by the following properties:</para><list type="bullet"><item><para>The <see cref="P:System.Text.RegularExpressions.Group.Captures" /> property. Each member of the collection represents a substring captured by a capturing group. If a quantifier is not applied to a capturing group, the <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> includes a single <see cref="T:System.Text.RegularExpressions.Capture" /> object that represents the same captured substring as the <see cref="T:System.Text.RegularExpressions.Group" /> object. If a quantifier is applied to a capturing group, the <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> includes one <see cref="T:System.Text.RegularExpressions.Capture" /> object for each captured substring, and the <see cref="T:System.Text.RegularExpressions.Group" /> object provides information only about the last captured substring.</para></item><item><para>The Match.Captures property. In this case, the collection consists of a single <see cref="T:System.Text.RegularExpressions.Capture" /> object that provides information about the match as a whole. That is, the <see cref="T:System.Text.RegularExpressions.CaptureCollection" /> object provides the same information as the <see cref="T:System.Text.RegularExpressions.Match" /> object. </para></item></list><para>To iterate through the members of the collection, you should use the collection iteration construct provided by your language (such as foreach in C# and For Each…Next in Visual Basic) instead of retrieving the enumerator that is returned by the <see cref="M:System.Text.RegularExpressions.CaptureCollection.GetEnumerator" /> method. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents the set of captures made by a single capturing group. </para></summary></Docs><Members><Member MemberName="CopyTo"><MemberSignature Language="C#" Value="public void CopyTo (Array array, int arrayIndex);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void CopyTo(class System.Array array, int32 arrayIndex) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="array" Type="System.Array" /><Parameter Name="arrayIndex" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Because the entire collection is copied into the array starting at the given index, the destination array must be at least as large as the collection.</para><block subset="none" type="note"><para>This member is not present in the net_portable. If you are developing applications that target the net_portable, use the <see cref="M:System.Text.RegularExpressions.CaptureCollection.System#Collections#ICollection#CopyTo(System.Array,System.Int32)" /> method instead.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Copies all the elements of the collection to the given array beginning at the given index.</para></summary><param name="array"><attribution license="cc4" from="Microsoft" modified="false" />The array the collection is to be copied into. </param><param name="arrayIndex"><attribution license="cc4" from="Microsoft" modified="false" />The position in the destination array where copying is to begin. </param></Docs></Member><Member MemberName="Count"><MemberSignature Language="C#" Value="public int Count { get; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 Count" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'int'</value><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the number of substrings captured by the group.</para></summary></Docs></Member><Member MemberName="GetEnumerator"><MemberSignature Language="C#" Value="public System.Collections.IEnumerator GetEnumerator ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.IEnumerator GetEnumerator() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Collections.IEnumerator</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Instead of calling the <see cref="M:System.Text.RegularExpressions.GroupCollection.GetEnumerator" /> method to retrieve an enumerator that lets you iterate through the <see cref="T:System.Text.RegularExpressions.Group" /> objects in the collection, you should use the group iteration construct (such as foreach in C# and For Each…Next in Visual Basic) that is provided by your programming language.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides an enumerator that iterates through the collection.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An object that contains all <see cref="T:System.Text.RegularExpressions.Capture" /> objects within the <see cref="T:System.Text.RegularExpressions.CaptureCollection" />.</para></returns></Docs></Member><Member MemberName="IsReadOnly"><MemberSignature Language="C#" Value="public bool IsReadOnly { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsReadOnly" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'bool'</value><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value that indicates whether the collection is read only.</para></summary></Docs></Member><Member MemberName="IsSynchronized"><MemberSignature Language="C#" Value="public bool IsSynchronized { get; }" /><MemberSignature Language="ILAsm" Value=".property instance bool IsSynchronized" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'bool'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><block subset="none" type="note"><para>This member is not present in the net_portable. If you are developing applications that target the net_portable, use the <see cref="P:System.Text.RegularExpressions.CaptureCollection.System#Collections#ICollection#IsSynchronized" /> property instead.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value that indicates whether access to the collection is synchronized (thread-safe).</para></summary></Docs></Member><Member MemberName="Item"><MemberSignature Language="C#" Value="public System.Text.RegularExpressions.Capture this[int i] { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.Text.RegularExpressions.Capture Item(int32)" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Text.RegularExpressions.Capture</ReturnType></ReturnValue><Parameters><Parameter Name="i" Type="System.Int32" /></Parameters><Docs><param name="i">To be added.</param><summary>To be added.</summary><value>To be added.</value><remarks>To be added.</remarks></Docs></Member><Member MemberName="SyncRoot"><MemberSignature Language="C#" Value="public object SyncRoot { get; }" /><MemberSignature Language="ILAsm" Value=".property instance object SyncRoot" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Object</ReturnType></ReturnValue><Docs><value>To be added: an object of type 'object'</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><block subset="none" type="note"><para>This member is not present in the net_portable. If you are developing applications that target the net_portable, use the <see cref="P:System.Text.RegularExpressions.CaptureCollection.System#Collections#ICollection#SyncRoot" /> property instead.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets an object that can be used to synchronize access to the collection.</para></summary></Docs></Member></Members></Type>