Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SearchExpression.ComparisonType Property

.NET Framework 4.6 and 4.5

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.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft