O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

CaptureCollection

Synopsis

This class contains a set of captures acquired by a single capturing group. A CaptureCollection is returned by Group.Captures. An integer indexer returns a single Capture object from this collection. The Count property gets the number of captures in the collection.

public class CaptureCollection : ICollection, IEnumerable {
// Public Instance Properties
   public field int Count{get; }                                 // implements ICollection
   public field bool IsReadOnly{get; } 
   public field bool IsSynchronized{get; }                       // implements ICollection
   public field object SyncRoot{get; }                           // implements ICollection
   public field Capture this{get; } 
// Public Instance Methods
   public method void CopyTo(Array array, int arrayIndex);      // implements ICollection
   public method IEnumerator GetEnumerator();                    // implements IEnumerable
}

Returned By

Group.Captures

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required