Capture Class in .NET

In this news I am going to explain about Capture class in .NET
  • 2047


Capture class is used to capture data. Object of capture class is immutable and it does not have any public constructure. Instances of capure class are returned using CaptureCollection object.

CaptuteCollection object is returned by two properties

  • Match.Captures properties
  • Group.Captures  properties

Inheritance Hierarchy Used in Capture Class


Namespace and Assembly used in Capture Class

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

Syntax used in C# of Capture Class

public class Capture [SerializableAttribute]

There are three properties in Capture Class

  • Index
  • Length
  • Values

There are six method in Capture Class

  • Equals(Object)
  • Finalize
  • GetHashCode
  • GetType
  • MemberwiseClone
  • ToString

Version Information

It support all version of Visual Studio.


  • Windows 8
  • Windows 7
  • Windows Server 2008 SP2
  • Windows Server 2008 R2

© 2020 DotNetHeaven. All rights reserved.