Share via


Options Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the options that were passed into the Regex constructor.

Namespace:  System.Text.RegularExpressions
Assembly:  System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)

Syntax

'Declaration
Public Property Options As RegexOptions
public RegexOptions Options { get; set; }
public:
property RegexOptions Options {
    RegexOptions get ();
    void set (RegexOptions value);
}
member Options : RegexOptions with get, set
function get Options () : RegexOptions
function set Options (value : RegexOptions)

Property Value

Type: System.Text.RegularExpressions. . :: . .RegexOptions
One or more members of the RegexOptions enumeration that represent options that were passed to the Regex constructor

Remarks

The value of the Options property consists of one or more members of the RegexOptions enumeration. If no options were defined in the Regex class constructor, its value is RegexOptions..::..None. The available options are discussed in detail in the Regular Expression Options topic.

.NET Framework Security

See Also

Reference

Regex Class

System.Text.RegularExpressions Namespace