Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

RegexCompilationInfo::Pattern Property

 

Gets or sets the regular expression to compile.

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

public:
property String^ Pattern {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The regular expression to compile.

Exception Condition
ArgumentNullException

The value for this property is null.

The Pattern property can contain any valid regular expression. If the value of the Pattern property is not a syntactically correct regular expression pattern, the call to the CompileToAssembly method throws an ArgumentException.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft