在.NET中捕获类 Capture

捕获类用于捕获数据。
捕获类的对象是不可变的,它没有任何公共结构。
使用CaptureCollection对象返回Capure类的实例。

CaptUteCollection对象由两个属性返回

  • match.Captures属性
  • Group.Captures属性

捕获类中使用的继承层次结构
system.Object.
system.text.regularexpressions.Capture.
system.text.regularexpressions.group.

捕获类中使用的命名空间和程序集

System.Object
System.Text.RegularExpressions.Capture
System.Text.RegularExpressions.Group

COF捕获类中使用的语法

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

捕获类中有三个属性

  • Index
  • Length
  • Values

捕获类中有六种方法

  • Equals(Object)
  • Finalize
  • GetHashCode
  • GetType
  • MemberwiseClone
  • ToString
日期:2020-04-11 22:50:15 来源:oir作者:oir