言語

Regex.CapNames プロパティ

定義

重要

この API は CLS 準拠ではありません。

名前付きキャプチャ グループをインデックス値にマップするディクショナリを取得または設定します。

protected:
 property System::Collections::IDictionary ^ CapNames { System::Collections::IDictionary ^ get(); void set(System::Collections::IDictionary ^ value); };
[System.CLSCompliant(false)]
protected System.Collections.IDictionary? CapNames { get; set; }
protected System.Collections.IDictionary CapNames { get; set; }
[System.CLSCompliant(false)]
protected System.Collections.IDictionary CapNames { get; set; }
[<System.CLSCompliant(false)>]
member this.CapNames : System.Collections.IDictionary with get, set
member this.CapNames : System.Collections.IDictionary with get, set
Protected Property CapNames As IDictionary

プロパティ値

名前付きキャプチャ グループをインデックス値にマップするディクショナリ。

属性

例外

設定操作で CapNames プロパティに割り当てられた値が null

注釈

このプロパティは保護されていることに注意してください。 Regex クラスから派生したクラスからのみアクセスできます。

set 操作は、プロパティに割り当てられた値を Hashtable オブジェクトに変換しようとします。この変換が失敗した場合は、 Hashtable.Hashtable(IDictionary) コンストラクターを呼び出します。

適用対象