Regex.ValueMatchEnumerator 構造体

定義

正規表現パターンを入力スパンに繰り返し適用することによって見つかった一連の成功した一致を含む列挙子を表します。

public: value class Regex::ValueMatchEnumerator : System::Collections::Generic::IEnumerator<System::Text::RegularExpressions::ValueMatch>
public: value class Regex::ValueMatchEnumerator
public ref struct Regex.ValueMatchEnumerator : System.Collections.Generic.IEnumerator<System.Text.RegularExpressions.ValueMatch>
public ref struct Regex.ValueMatchEnumerator
type Regex.ValueMatchEnumerator = struct
    interface IEnumerator<ValueMatch>
    interface IEnumerator
    interface IDisposable
type Regex.ValueMatchEnumerator = struct
Public Structure Regex.ValueMatchEnumerator
Implements IEnumerator(Of ValueMatch)
Public Structure Regex.ValueMatchEnumerator
継承
Regex.ValueMatchEnumerator
実装

注釈

列挙子にはパブリック コンストラクターがありません。 EnumerateMatches(ReadOnlySpan<Char>) メソッドが Regex.ValueMatchEnumerator オブジェクトを返します。 列挙子は、0 個以上の ValueMatch オブジェクトを遅延的に反復処理します。 スパンに成功した一致が少なくとも 1 つある場合、 MoveNext()true を返し、 Current には最初の ValueMatchが含まれます。 成功した一致がない場合、 MoveNext()false を返し、 CurrentInvalidOperationExceptionをスローします。

この型は ref 構造体です。これは、入力スパンを遅延的に反復処理できるようにするためにフィールドとして格納されるためです。

プロパティ

名前 説明
Current

列挙子の現在の位置にある ValueMatch 要素を取得します。

メソッド

名前 説明
GetEnumerator()

入力スパン内の一致を反復処理する列挙子を提供します。

MoveNext()

列挙子をスパン内の次の一致に進めます。

明示的なインターフェイスの実装

名前 説明
IDisposable.Dispose()

アンマネージド リソースの解放、解放、またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

IEnumerator.Current

列挙子の現在位置にあるコレクション内の要素を取得します。

IEnumerator.Reset()

列挙子を最初の位置 (コレクション内の最初の要素の前) に設定します。

適用対象