EdmFunctions.Right(DbExpression, DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个 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,从中返回最右侧的长度lengthstringArgument子字符串。
例外
stringArgument 或 length 为 null.
stringArgument 无效。