SqlFunctions.SoundCode(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將字母數字字串轉換為四字元(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 對 Entities 查詢中。
這個函式會被轉換成資料庫中的對應函式。 關於對應SQL Server函數的資訊,請參見 SOUNDEX (Transact-SQL)。