RegexCompilationInfo.Namespace Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the namespace to which the new type belongs.

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

public string Namespace { get; set; }

Property Value

Type: System.String

The namespace of the new type.

Exception Condition

The value for this property is null.

The RegexCompilationInfo class is used to define a compiled regular expression, which is represented as a class derived from Regex. The Namespace property defines the namespace that contains the compiled regular expression type, and the Namespace and Name properties together define its fully qualified name.

.NET Framework
Available since 1.1
Return to top