EdmFunctions.StartsWith(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,呼叫典型的「StartsWith」函式,並指定參數,且每個參數必須有字串結果型別。 表達式的結果類型為 Boolean。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFunctionExpression ^ StartsWith(System::Data::Common::CommandTrees::DbExpression ^ stringArgument, System::Data::Common::CommandTrees::DbExpression ^ prefix);
public static System.Data.Common.CommandTrees.DbFunctionExpression StartsWith(this System.Data.Common.CommandTrees.DbExpression stringArgument, System.Data.Common.CommandTrees.DbExpression prefix);
static member StartsWith : System.Data.Common.CommandTrees.DbExpression * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbFunctionExpression
<Extension()>
Public Function StartsWith (stringArgument As DbExpression, prefix As DbExpression) As DbFunctionExpression

參數

stringArgument
DbExpression

一個表達式,用來指定在起始處搜尋字串 prefix的字串。

prefix
DbExpression

一個表達式,用來指定在 開 stringArgument頭搜尋的目標字串。

傳回

一個新的 DbFunctionExpression,回傳一個布林值,指示是否 stringArgumentprefix開頭。

適用於