ComparisonEngineCompareString Method (String, String, ValueOperator, StringComparison) |
Compares a string using the specified ValueOperator
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static bool CompareString(
string actualValue,
string expectedValue,
ValueOperator valueOperator,
StringComparison comparisonType
)
Public Shared Function CompareString (
actualValue As String,
expectedValue As String,
valueOperator As ValueOperator,
comparisonType As StringComparison
) As Boolean
public:
static bool CompareString(
String^ actualValue,
String^ expectedValue,
ValueOperator valueOperator,
StringComparison comparisonType
)
Parameters
- actualValue
- Type: SystemString
The value obtained from the query - expectedValue
- Type: SystemString
The expected value specified in the query logic - valueOperator
- Type: Lithnet.MetadirectoryServicesValueOperator
The value operator to use in the comparison - comparisonType
- Type: SystemStringComparison
The type of string comparison to perform
Return Value
Type:
BooleanA boolean value indicating if the actual and expected value matched when using the specified ValueOperator
See Also