RegexParseException.Offset Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the zero-based character offset in the regular expression pattern where the parse error occurs.

C#
public int Offset { get; }

Property Value

The offset at which the parse error occurs.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10