EdmFunctions.Left(DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione 'Left' canonica con gli argomenti specificati, che devono avere un tipo di risultato numerico stringa e integer. Il tipo di risultato dell'espressione è string.

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ù a sinistra da estrarre da stringArgument.

Valori restituiti

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

Eccezioni

stringArgument o length è null.

stringArgument non è valido.

Si applica a