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

.NET Framework (current version)

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 Right function. For information about the canonical Right function, see String Canonical Functions.

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

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


Type: System.String

A valid string expression.

Type: System.Nullable<Int64>

The number of characters to return.

Return Value

Type: System.String

The rightmost 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