RegexRunner.Capture(Int32, Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
由 Go() 呼叫以擷取子表達式。 請注意,這裡使用的 capnum 已經被映射到非稀疏索引(由程式碼產生器 RegexWriter 映射)。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
protected:
void Capture(int capnum, int start, int end);
protected void Capture(int capnum, int start, int end);
member this.Capture : int * int * int -> unit
Protected Sub Capture (capnum As Integer, start As Integer, end As Integer)
參數
- capnum
- Int32
一個捕獲號碼。
- start
- Int32
吃子的起始位置。
- end
- Int32
捕獲的終點位置。