แก้ไข

แชร์ผ่าน


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

Definition

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

public:
 static System::String ^ Right(System::String ^ stringArgument, Nullable<long> length);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "Right")]
public static string Right (string stringArgument, long? length);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "Right")>]
static member Right : string * Nullable<int64> -> string
Public Shared Function Right (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 rightmost 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