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 | 表示在欄位末端進行的搜尋。 |