EdmFunctions.Substring(DbExpression, DbExpression, DbExpression) Metodo

Definizione

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

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 cui deve essere acquisita la sottostringa.

length
DbExpression

Espressione che specifica la lunghezza della sottostringa.

Valori restituiti

Nuovo DbFunctionExpression che restituisce la sottostringa di lunghezza length a partire da startstringArgument .

Eccezioni

stringArgument, starto length è null.

stringArgument, starto length non è valido.

Commenti

La sottostringa richiede che l'indice specificato dall'inizio sia <b>in base< a 1/b>.

Si applica a