EdmFunctions.StartsWith(DbExpression, DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立 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,回傳一個布林值,指示是否 stringArgument 以 prefix開頭。