IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String) Method

Definition

Determines whether the given literal can match the constraint.

public bool MatchesLiteral (string parameterName, string literal);
abstract member MatchesLiteral : string * string -> bool
Public Function MatchesLiteral (parameterName As String, literal As String) As Boolean

Parameters

parameterName
String

The parameter name we are currently evaluating.

literal
String

The literal to test the constraint against.

Returns

true if the literal contains a valid value; otherwise, false.

Applies to