Share via


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

Definition

When used as part of a LINQ to Entities query, this method invokes the canonical Right EDM function to return a given number of the rightmost characters in a string.

[System.Data.Entity.DbFunction("Edm", "Right")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="string")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="length")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringArgument")]
public static string Right (string stringArgument, Nullable<long> length);
static member Right : string * Nullable<int64> -> string
Public Shared Function Right (stringArgument As String, length As Nullable(Of Long)) As String

Parameters

stringArgument
String

The input string.

length
Nullable<Int64>

The number of characters to return

Returns

A string containing the number of characters asked for from the right of the input string.

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