Share via


EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) Metodo

Definizione

Crea un oggetto DbFunctionExpression che richiama la funzione "Substring" canonica con gli argomenti specificati, che devono presentare tipi di risultato String e Integer numerico. Il tipo di risultato dell'espressione è stringa.

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

Parametri

stringArgument
DbExpression

Espressione che specifica la stringa da cui estrarre la sottostringa.

start
DbExpression

Espressione che specifica l'indice iniziale da utilizzare per il recupero della sottostringa.

length
DbExpression

Espressione che specifica la lunghezza della sottostringa.

Restituisce

Nuovo DbFunctionExpression che restituisce la sottostringa di lunghezza length dall'inizio stringArgument a start.

Eccezioni

stringArgument, start o length è null.

stringArgument, starto length non è valido.

Commenti

La sottostringa richiede che l'indice specificato dall'inizio sia <basato su< b 1/b>>.

Si applica a