Namespace Property

RegexCompilationInfo.Namespace Property

 

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
ArgumentNullException

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
Show:
© 2016 Microsoft