Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents the set of captures made by a single capturing group.
Inheritance Hierarchy
System. . :: . .Object
System.Text.RegularExpressions..::..CaptureCollection
Namespace: System.Text.RegularExpressions
Assembly: System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class CaptureCollection _
Implements ICollection, IEnumerable
[SerializableAttribute]
public class CaptureCollection : ICollection,
IEnumerable
[SerializableAttribute]
public ref class CaptureCollection : ICollection,
IEnumerable
[<SerializableAttribute>]
type CaptureCollection =
class
interface ICollection
interface IEnumerable
end
public class CaptureCollection implements ICollection, IEnumerable
The CaptureCollection type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
![]() |
Count | Gets the number of substrings captured by the group. |
![]() |
IsReadOnly | Gets a value that indicates whether the collection is read only. |
![]() |
IsSynchronized | Gets a value that indicates whether access to the collection is synchronized (thread-safe). |
![]() |
Item | Gets an individual member of the collection. |
![]() |
SyncRoot | Gets an object that can be used to synchronize access to the collection. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
CopyTo | Copies all the elements of the collection to the given array beginning at the given index. |
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetEnumerator | Provides an enumerator that iterates through the collection. |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
The collection is immutable (read-only) and has no public constructor. The CaptureCollection object contains one or more Capture objects.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)
.gif)