EdmFunctions.Right(DbExpression, DbExpression) 方法

定義

建立 DbFunctionExpression 一個,喚起標準的「Right」函數,並指定參數,該函數必須包含字串與整數的數值結果型別。 表達式的結果類型為字串。

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

參數

stringArgument
DbExpression

一個指定從哪個字串中提取最右子字串的表達式。

length
DbExpression

一個表示式,指定從中提取 stringArgument的最右子串長度。

傳回

一個新的 DbFunctionExpression,回傳長度length為 的最右側子串。stringArgument

例外狀況

stringArgumentlengthnull

stringArgument 無效。

適用於