Export (0) Print
Expand All

EntityFunctions.Left Method

.NET Framework 4.6 and 4.5

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

Namespace:  System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

[EdmFunctionAttribute("Edm", "Left")]
public static string Left(
	string stringArgument,
	Nullable<long> length
)

Parameters

stringArgument
Type: System.String

A valid string expression.

length
Type: System.Nullable<Int64>

The number of characters to return.

Return Value

Type: System.String
The leftmost length number of characters of stringArgument.

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.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft