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: