Skip to content

GeneratedRegexAttribute Constructors

Definition

Namespace: Corvus.Ecma262.RegularExpressions
Assembly: Corvus.Regex.Ecma262.dll

Overloads

Constructor Description
GeneratedRegexAttribute(string) Initializes a new instance of the GeneratedRegexAttribute class.
GeneratedRegexAttribute(string, RegexFlags) Initializes a new instance of the GeneratedRegexAttribute class.
GeneratedRegexAttribute(string, RegexFlags, int) Initializes a new instance of the GeneratedRegexAttribute class.
GeneratedRegexAttribute(string, string) Initializes a new instance of the GeneratedRegexAttribute class.
GeneratedRegexAttribute(string, string, int) Initializes a new instance of the GeneratedRegexAttribute class.

GeneratedRegexAttribute(string)

Source: GeneratedRegexAttribute.cs

Initializes a new instance of the GeneratedRegexAttribute class.

public GeneratedRegexAttribute(string pattern)

Parameters

Name Type Description
pattern string The pattern.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

GeneratedRegexAttribute(string, RegexFlags)

Source: GeneratedRegexAttribute.cs

Initializes a new instance of the GeneratedRegexAttribute class.

public GeneratedRegexAttribute(string pattern, RegexFlags flags)

Parameters

Name Type Description
pattern string The pattern.
flags RegexFlags The flags.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

GeneratedRegexAttribute(string, RegexFlags, int)

Source: GeneratedRegexAttribute.cs

Initializes a new instance of the GeneratedRegexAttribute class.

public GeneratedRegexAttribute(string pattern, RegexFlags flags, int matchTimeoutMilliseconds)

Parameters

Name Type Description
pattern string The pattern.
flags RegexFlags The flags.
matchTimeoutMilliseconds int The limit of time on a match in milliseconds, or -1 for none.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

GeneratedRegexAttribute(string, string)

Source: GeneratedRegexAttribute.cs

Initializes a new instance of the GeneratedRegexAttribute class.

public GeneratedRegexAttribute(string pattern, string flags)

Parameters

Name Type Description
pattern string The pattern.
flags string The flags as ECMA-262 writes them: letters from dgimsuvy.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

GeneratedRegexAttribute(string, string, int)

Source: GeneratedRegexAttribute.cs

Initializes a new instance of the GeneratedRegexAttribute class.

public GeneratedRegexAttribute(string pattern, string flags, int matchTimeoutMilliseconds)

Parameters

Name Type Description
pattern string The pattern.
flags string The flags as ECMA-262 writes them: letters from dgimsuvy.
matchTimeoutMilliseconds int The limit of time on a match in milliseconds, or -1 for none.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue