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 類別存取。

設定作業會嘗試將指派給 屬性 Hashtable 的值轉換成 物件;如果轉換失敗,則會呼叫 Hashtable.Hashtable(IDictionary) 建構函式。

適用於