Share via


EdmFunctions.Left(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione canonica "Left" con l'argomento specificato, che deve avere una stringa e un numero intero come tipo di risultato. Il tipo di risultato dell'espressione è stringa.

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

Parametri

stringArgument
DbExpression

Espressione che specifica la stringa da cui estrarre la sottostringa più a sinistra.

length
DbExpression

Espressione che specifica la lunghezza della sottostringa più sinistra da estrarre da stringArgument.

Restituisce

Nuovo DbFunctionExpression che restituisce la sottostringa più sinistra di lunghezza length da stringArgument.

Eccezioni

stringArgument o length è null.

stringArgument non è valido.

Si applica a