EdmFunctions.EndsWith(DbExpression, DbExpression) 方法

定義

建立 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 回傳一個布林值,表示是否 stringArgumentsuffix結尾。

適用於