EdmFunctions.EndsWith(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 DbFunctionExpression 一個,用指定的參數呼叫典型的「EndsWith」函式,且每個參數必須有字串結果型別。 表達式的結果類型為 Boolean。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbFunctionExpression ^ EndsWith(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ suffix);
public static System.Data.Common.CommandTrees.DbFunctionExpression EndsWith(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression suffix);
static member EndsWith : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function EndsWith (stringArgument As DbExpression, suffix As DbExpression) As DbFunctionExpression
參數
- stringArgument
- DbExpression
一個表達式,用來指定在結尾搜尋字串 suffix的字串。
- suffix
- DbExpression
一個表達式,指定在 末 stringArgument尾搜尋的目標字串。
傳回
一個新的 DbFunctionExpression 回傳一個布林值,表示是否 stringArgument 以 suffix結尾。