SearchExpression.SearchType Property

.NET Framework 4.6 and 4.5

Gets or sets the SearchType value that determines where in the string the search occurs.

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

public SearchType SearchType { get; set; }

Property Value

Type: System.Web.UI.WebControls.Expressions.SearchType
The type of search to perform.

The SearchType property uses the SearchType enumeration that contains the search types to use in an instance of the SearchExpression class.

The following table lists the possible enumeration values.




Indicates a search that starts anywhere in a field.


Indicates a search that starts at the beginning of a field.


Indicates a search that at the end of a field.

.NET Framework

Supported in: 4.6, 4.5, 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft