IParameterLiteralNodeMatchingPolicy.MatchesLiteral(String, String) Method
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.
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
.