SearchExpression.SearchType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个 SearchType 值,该值确定在字符串中发生搜索的位置。
public:
property System::Web::UI::WebControls::Expressions::SearchType SearchType { System::Web::UI::WebControls::Expressions::SearchType get(); void set(System::Web::UI::WebControls::Expressions::SearchType value); };
public System.Web.UI.WebControls.Expressions.SearchType SearchType { get; set; }
member this.SearchType : System.Web.UI.WebControls.Expressions.SearchType with get, set
Public Property SearchType As SearchType
属性值
要执行的搜索类型。
注解
该 SearchType 属性使用 SearchType 包含要用于类实例的 SearchExpression 搜索类型的枚举。
下表列出了可能的枚举值。
| 枚举 | Description |
|---|---|
| StartsWith | 指示在字段中的任意位置开始的搜索。 |
| Contains | 指示从字段开头开始的搜索。 |
| EndsWith | 指示字段末尾的搜索。 |