Edit

Share via


EntityFunctions.Left(String, Nullable<Int64>) Method

Definition

Invokes the canonical Left function. For information about the canonical Left function, see String Canonical Functions.

public:
 static System::String ^ Left(System::String ^ stringArgument, Nullable<long> length);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "Left")]
public static string Left (string stringArgument, long? length);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "Left")>]
static member Left : string * Nullable<int64> -> string
Public Shared Function Left (stringArgument As String, length As Nullable(Of Long)) As String

Parameters

stringArgument
String

A valid string expression.

length
Nullable<Int64>

The number of characters to return.

Returns

The leftmost length number of characters of stringArgument.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database.

Applies to