RegexCompilationInfo.Options 屬性

定義

取得或設定要在編譯規則運算式時使用的選項。

public:
 property System::Text::RegularExpressions::RegexOptions Options { System::Text::RegularExpressions::RegexOptions get(); void set(System::Text::RegularExpressions::RegexOptions value); };
public System.Text.RegularExpressions.RegexOptions Options { get; set; }
member this.Options : System.Text.RegularExpressions.RegexOptions with get, set
Public Property Options As RegexOptions

屬性值

RegexOptions

列舉值的位元組合。

備註

CompileToAssembly方法會產生包含已編譯正則運算式的元件。 因此,您不需要指定 Compiled 為這個屬性的其中一個值。 如果存在,則 Compiled 會忽略此選項。

適用於