Share via


RegexCompilationInfo.Pattern 屬性

定義

取得或設定要編譯的規則運算式。

public:
 property System::String ^ Pattern { System::String ^ get(); void set(System::String ^ value); };
public string Pattern { get; set; }
member this.Pattern : string with get, set
Public Property Pattern As String

屬性值

要編譯的規則運算式。

例外狀況

這個屬性的值為 null

備註

屬性 Pattern 可以包含任何有效的正則運算式。 如果 屬性的值 Pattern 不是語法正確的正則運算式模式,則方法的呼叫 CompileToAssemblyArgumentException 擲回 。

適用於

另請參閱