EdmFunctions.Length(DbExpression) Methode

Definitie

Hiermee maakt u een DbFunctionExpression die de canonieke functie Lengte aanroept met het opgegeven argument, dat een tekenreeksresultaattype moet hebben. Het resultaattype van de expressie is Edm.Int32.

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

Parameters

stringArgument
DbExpression

Een expressie die de tekenreeks aangeeft waarvoor de lengte moet worden berekend.

Retouren

Een nieuwe DbFunctionExpression die de lengte van stringArgument.

Uitzonderingen

stringArgument is null.

stringArgument is ongeldig.

Van toepassing op