EntityFunctions.Left(String, Nullable<Int64>) 方法

定義

啟動典範 Left 功能。 關於典範 Left 函數的資訊,請參見 「弦典範函數」。

public:
 static System::String ^ Left(System::String ^ stringArgument, Nullable<long> length);
[System.Data.Objects.DataClasses.EdmFunction("Edm", "Left")]
public static string Left(string stringArgument, long? length);
[<System.Data.Objects.DataClasses.EdmFunction("Edm", "Left")>]
static member Left : string * Nullable<int64> -> string
Public Shared Function Left (stringArgument As String, length As Nullable(Of Long)) As String

參數

stringArgument
String

一個有效的字串表達式。

length
Nullable<Int64>

要傳回的字元數。

傳回

lengthstringArgument左邊的字元數。

屬性

備註

你不能直接呼叫這個函式。 此函式只能出現在 LINQ 對 Entities 查詢中。

這個函式會被轉換成資料庫中的對應函式。

適用於