System::Text::RegularExpressions::CaptureCollection class

CaptureCollection class

由单个捕获组完成的捕获列表。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class CaptureCollection : public System::Collections::Generic::List<CapturePtr>

方法

方法描述
Add(const CapturePtr&) override禁用集合修订。
AddCapture(const CapturePtr&)用于向集合中添加捕获的服务方法。
Clear() override禁用清理集合。
get_Count() const override获取捕获的数量。
get_IsReadOnly() const override将集合标记为只读。
get_IsSynchronized() const将集合标记为未同步。
idx_get(int) const overrideCapture 访问器。
operator[](int)Capture 访问器。
operator[](int) constCapture 访问器。
Remove(const CapturePtr&) override禁用集合修订。

Typedefs

类型定义描述
BaseBase 类型。

另见