System.Text.RegularExpressions.RegexCompilationInfo Class

Assembly: System.dll
Namespace: System.Text.RegularExpressions
Summary
Provides information that the compiler uses to compile a regular expression to a stand-alone assembly.
C# Syntax:
[Serializable]
public class RegexCompilationInfo
See also:
System.Text.RegularExpressions Namespace

System.Text.RegularExpressions.RegexCompilationInfo Member List:

Public Constructors
ctor #1 Creates a RegexCompilationInfo object containing the information the compiler needs to create the assembly.
Public Properties
IsPublic Read-write

Gets or sets a value indicating whether the compiled regular expression has public visibility.
Name Read-write

Gets or sets the name of the type to use for the compiled regular expression.
Namespace Read-write

Gets or sets the namespace to add the new type to.
Options Read-write

Gets or sets the compiler options to use when compiling the regular expression.
Pattern Read-write

Gets or sets the regular expression to compile.
Public Methods
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Text.RegularExpressions.RegexCompilationInfo Member Details

ctor #1
Summary
Creates a RegexCompilationInfo object containing the information the compiler needs to create the assembly.
C# Syntax:
public RegexCompilationInfo(
   string pattern,
   RegexOptions options,
   string name,
   string fullnamespace,
   bool ispublic
);
Parameters:

pattern

The regular expression to compile.

options

The compiler options to use when compiling the regular expression.

name

The name of the type to use for the compiled regular expression.

fullnamespace

The namespace to add to the new type to.

ispublic

true to make the compiled regular expression publicly visible; otherwise, false.

Return to top


Property: IsPublic (read-write)
Summary
Gets or sets a value indicating whether the compiled regular expression has public visibility.
C# Syntax:
public bool IsPublic {get; set;}

Return to top


Property: Name (read-write)
Summary
Gets or sets the name of the type to use for the compiled regular expression.
C# Syntax:
public string Name {get; set;}
Remarks
The Name and RegexCompilationInfo.Namespace properties refer to the new type in your code. If Name is MyCompiledRegex and Namespace is MyRegexNamespace , you would refer to the compiled regular expression in code as MyRegexNamespace.MyCompiledRegex .

Return to top


Property: Namespace (read-write)
Summary
Gets or sets the namespace to add the new type to.
C# Syntax:
public string Namespace {get; set;}
Remarks
The RegexCompilationInfo.Name and Namespace properties are used to refer to the new type in your code. If Name is MyCompiledRegex and Namespace is MyRegexNamespace , you would refer to the compiled regular expression in code as MyRegexNamespace.MyCompiledRegex .

Return to top


Property: Options (read-write)
Summary
Gets or sets the compiler options to use when compiling the regular expression.
C# Syntax:
public RegexOptions Options {get; set;}
Remarks
RegexOptions.Compiled is ignored because all regular expressions are compiled through this mechanism.

Return to top


Property: Pattern (read-write)
Summary
Gets or sets the regular expression to compile.
C# Syntax:
public string Pattern {get; set;}
Remarks
The Pattern property can contain any valid regular expression.

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~RegexCompilationInfo();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.