RegexCompilationInfo.Options 属性

定义

获取或设置编译正则表达式时使用的选项。Gets or sets the options to use when compiling the regular expression.

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

属性值

枚举值的按位组合。A bitwise combination of the enumeration values.

注解

CompileToAssembly 方法将生成一个包含已编译的正则表达式的程序集。The CompileToAssembly method generates an assembly that contains compiled regular expressions. 因此,无需指定 Compiled 作为此属性的值之一。Therefore, you do not have to specify Compiled as one of the values of this property. 如果它存在,则将忽略 Compiled 选项。If it is present, the Compiled option is ignored.

适用于