Regex.CapNames Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Important
This API is not CLS-compliant.
Gets or sets a dictionary that maps named capturing groups to their index values.
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
A dictionary that maps named capturing groups to their index values.
- Attributes
The value assigned to the CapNames property in a set operation is null
.
Note that this property is protected; it can only be accessed from a class derived from the Regex class.
A set operation attempts to convert the value assigned to the property to a Hashtable object; if this conversion fails, it calls the Hashtable.Hashtable(IDictionary) constructor.
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.6, 2.0, 2.1 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: