EdmFunctions.TrimStart(DbExpression) 方法

定义

创建一个 DbFunctionExpression,它调用具有指定参数的规范“LTrim”函数,其必须具有字符串结果类型。Creates a DbFunctionExpression that invokes the canonical 'LTrim' function with the specified argument, which must have a string result type. 该表达式的结果类型也为字符串。The result type of the expression is also string.

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

参数

stringArgument
DbExpression

一个表达式,该表达式指定应从其中删除先导空格的字符串。An expression that specifies the string from which leading space should be removed.

返回

DbFunctionExpression

一个新的 DbFunctionExpression,它返回已删除前导空格的 stringArgument 的值。A new DbFunctionExpression that returns value of stringArgument with leading space removed.

例外

stringArgumentstringArgument

stringArgumentstringArgument

适用于