SearchExpression.ComparisonType Property

.NET Framework (current version)
 

Gets or sets the type of string comparison to perform.

Namespace:   System.Web.UI.WebControls.Expressions
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public StringComparison ComparisonType { get; set; }

Property Value

Type: System.StringComparison

The type of string comparison to perform.

Exception Condition
InvalidOperationException

The DataFields property is null.

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.

.NET Framework
Available since 4.0
Return to top
Show: