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

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 4.0
Return to top
Show: