RegexCompilationInfo Class

Provides information about a regular expression that is used to compile a regular expression to a stand-alone assembly.

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

public class RegexCompilationInfo
/** @attribute SerializableAttribute() */ 
public class RegexCompilationInfo
public class RegexCompilationInfo
Not applicable.

An array of RegexCompilationInfo objects is passed to the CompileToAssembly method to provide information about each regular expression to be included in the assembly. Each compiled regular expression that is included in the assembly is represented as a class derived from Regex. The properties of the RegexCompilationInfo type define the regular expression's class name, its fully qualified name (that is, its namespace and its type name), its regular expression pattern, and any additional options (such as whether the regular expression is case-insensitive).

You can instantiate a RegexCompilationInfo object by calling its class constructor.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0