PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Transactions.​Model Namespace / Transaction­Policy­Expression­Functions Class / Transaction­Policy­Expression­Functions Methods / Transaction­Policy­Expression­Functions.​Matches Method

TransactionPolicyExpressionFunctions.Matches Method

Returns true if the string input matches the regex pattern.

Namespace:  PostSharp.Patterns.Diagnostics.Transactions.Model
Assembly:  PostSharp.Patterns.Diagnostics.Configuration (in PostSharp.Patterns.Diagnostics.Configuration.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public static bool Matches(
	string input,
	string pattern
)

Parameters

input
Type: System.String
An input string, haystack.
pattern
Type: System.String
The regex pattern.

Return Value

Type: Boolean
See Also