Parses an error text format containing patterns, which will be resolved. Patterns are contained inside curled braces. E.g. “I
found {0:xxx} errors!”. The first value (0) is the zero-based index of filtering entry, which will provide a text that will be
substitute the pattern. The “:xxx” specifies arguments to the filtering entry, which can be used by the filtering entry to
generate the text.
Namespace: Scanjour.Workflow4.ActivityLibrary.ErrorManagement
Assembly: Scanjour.Workflow4.ActivityLibrary_19.1.6.0 (in Scanjour.Workflow4.ActivityLibrary_19.1.6.0.dll) Version: 19.1.6.0 (19.1.6.0)
Syntax
public static string Parse( string errorTextFormat, ErrorTextFormatParserGetParameterText getParameterText )
Parameters
- errorTextFormat
- Type: SystemString
The error text to parse. - getParameterText
- Type: Scanjour.Workflow4.ActivityLibrary.ErrorManagementErrorTextFormatParserGetParameterText
A callback method that interprets the patterns.
Return Value
Type: StringThe resolved error text.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException |
See Also