Regex.Caps 屬性

定義

重要

此 API 不符合 CLS 規範。

取得或設定字典,對應編號的擷取群組及其索引值。

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

屬性值

對應編號的擷取群組及其索引值的字典。

屬性

例外狀況

在設定作業中指派給 Caps 的屬性值是 null

備註

請注意,這個屬性受到保護;它只能從衍生自 類別的 Regex 類別存取。

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

適用於