This documentation is archived and is not being maintained.

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

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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0