SearchType Property
Collapse the table of content
Expand the table of content

SearchExpression.SearchType Property

.NET Framework (current version)
 

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.

Enumeration

Description

StartsWith

Indicates a search that starts anywhere in a field.

Contains

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

EndsWith

Indicates a search that at the end of a field.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft