CaptureCollection Class

[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.


Namespace:  System.Text.RegularExpressions
Assembly:  System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)

public class CaptureCollection : ICollection, 

The CaptureCollection type exposes the following members.

Public propertyCountGets the number of substrings captured by the group.
Public propertyIsReadOnlyGets a value that indicates whether the collection is read only.
Public propertyIsSynchronizedGets a value that indicates whether access to the collection is synchronized (thread-safe).
Public propertyItemGets an individual member of the collection.
Public propertySyncRootGets an object that can be used to synchronize access to the collection.

Public methodCopyToCopies all the elements of the collection to the given array beginning at the given index.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorProvides an enumerator that iterates through the collection.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

The collection is immutable (read-only) and has no public constructor. The CaptureCollection object contains one or more Capture objects.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.