共用方式為


SqlFunctions.SoundCode(String) 方法

定義

將英數字串轉換成四個字元 (SOUNDEX) 的代碼,以尋找發音相似的單字或名稱。

public:
 static System::String ^ SoundCode(System::String ^ arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SOUNDEX")]
public static string SoundCode(string arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "SOUNDEX")>]
static member SoundCode : string -> string
Public Shared Function SoundCode (arg As String) As String

參數

arg
String

有效的字串。

傳回

輸入字串的 SOUNDEX 碼。

屬性

備註

您無法直接呼叫此函式。 此函式只能出現在 LINQ to Entities 查詢內。

此函式會轉譯為資料庫中的對應函式。 如需對應 SQL Server 函式的相關信息,請參閱 SOUNDEX (Transact-SQL)

適用於