Bewerken

Share via


SearchExpression.ComparisonType Property

Definition

Gets or sets the type of string comparison to perform.

public:
 property StringComparison ComparisonType { StringComparison get(); void set(StringComparison value); };
public StringComparison ComparisonType { get; set; }
member this.ComparisonType : StringComparison with get, set
Public Property ComparisonType As StringComparison

Property Value

The type of string comparison to perform.

Exceptions

The DataFields property is null.

Remarks

This property enables you to use the StringComparison enumeration to specify how the search is performed. The StringComparison enumeration is used to specify whether a string comparison uses the current culture or the invariant culture, and whether it uses text or ordinal sort rules. If the data provider that the QueryExtender uses supports case sensitivity, you can use one of the comparison type properties to enable or ignore case sensitivity.

Applies to