Regex.Options Proprietà
Definizione
public:
property System::Text::RegularExpressions::RegexOptions Options { System::Text::RegularExpressions::RegexOptions get(); };
public System.Text.RegularExpressions.RegexOptions Options { get; }
member this.Options : System.Text.RegularExpressions.RegexOptions
Public ReadOnly Property Options As RegexOptions
Valore della proprietà
Uno o più membri dell'enumerazione RegexOptions che rappresentano le opzioni passate al costruttore RegexOne or more members of the RegexOptions enumeration that represent options that were passed to the Regex constructor
Commenti
Il valore della Options proprietà è costituito da uno o più membri dell' RegexOptions enumerazione.The value of the Options property consists of one or more members of the RegexOptions enumeration. Se non è stata definita alcuna opzione nel Regex costruttore della classe, il relativo valore è RegexOptions.None .If no options were defined in the Regex class constructor, its value is RegexOptions.None. Le opzioni disponibili sono descritte in dettaglio nell'argomento Opzioni di espressioni regolari .The available options are discussed in detail in the Regular Expression Options topic.
Si noti che la Options proprietà non riflette le opzioni inline definite nel criterio di ricerca di espressioni regolari.Note that the Options property does not reflect inline options defined in the regular expression pattern itself.
Note per gli eredi
Regex è la classe base di espressioni regolari create dal CompileToAssembly metodo. Regex is the base class of regular expressions created by the CompileToAssembly method. Queste espressioni regolari compilate usano l'implementazione della classe di base della Options Proprietà.These compiled regular expressions use the base class implementation of the Options property. Se chiamato da una classe derivata, la Options proprietà restituisce le opzioni passate aloptions
parametro del RegexCompilationInfo costruttore della classe utilizzato per definire l'espressione regolare.If called from a derived class, the Options property returns the options that were passed to the options
parameter of the RegexCompilationInfo class constructor that was used to define the regular expression.